summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2017-01-06 01:50:43 (GMT)
committerChristian Pointner <equinox@helsinki.at>2017-01-06 01:50:43 (GMT)
commit1db5125c61ed8ed050b01b7d0944569727a39e48 (patch)
treed6db4a53fb1b45af0a2420ba22388c401c28b10e
parente51518c2e5dbe88f320e77b455571ec350f2b6d0 (diff)
fix now-playing filter
-rw-r--r--nop/views.py2
1 files changed, 1 insertions, 1 deletions
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,