From 1db5125c61ed8ed050b01b7d0944569727a39e48 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 6 Jan 2017 02:50:43 +0100 Subject: fix now-playing filter diff --git a/nop/views.py b/nop/views.py index c66b66c..a8697bf 100644 --- a/nop/views.py +++ b/nop/views.py @@ -113,7 +113,7 @@ def _bydate(year=None, month=None, day=None, hour=None, minute=None): else: ts = int(time.mktime((int(year), int(month), int(day), int(hour), int(minute), 0, 0, 0, -1))) * 1000000 - result = _which(ts).objects.using(DB).filter(timestamp__lt=ts)[:5] + result = _which(ts).objects.using(DB).filter(carttype__exact='pool').filter(timestamp__lt=ts)[:5] return [{'show': show['name'], 'start': _dtstring(time.localtime(item.timestamp//1000000)), 'artist': item.artist, -- cgit v0.10.2