Skip to content
Snippets Groups Projects
Commit 1db5125c authored by Christian Pointner's avatar Christian Pointner
Browse files

fix now-playing filter

parent e51518c2
No related branches found
No related tags found
No related merge requests found
...@@ -113,7 +113,7 @@ def _bydate(year=None, month=None, day=None, hour=None, minute=None): ...@@ -113,7 +113,7 @@ def _bydate(year=None, month=None, day=None, hour=None, minute=None):
else: else:
ts = int(time.mktime((int(year), int(month), int(day), int(hour), ts = int(time.mktime((int(year), int(month), int(day), int(hour),
int(minute), 0, 0, 0, -1))) * 1000000 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'], return [{'show': show['name'],
'start': _dtstring(time.localtime(item.timestamp//1000000)), 'start': _dtstring(time.localtime(item.timestamp//1000000)),
'artist': item.artist, 'artist': item.artist,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment