Commit ce9e8eaf authored by fred's avatar fred

playlist: fix links for nonstop spanning midnight

parent 42c05d9a
...@@ -110,8 +110,7 @@ class EmissionDetailView(DetailView, EmissionMixin): ...@@ -110,8 +110,7 @@ class EmissionDetailView(DetailView, EmissionMixin):
else: else:
today = date.today() today = date.today()
dates = [today - timedelta(days=x) for x in range(7)] dates = [today - timedelta(days=x) for x in range(7)]
if datetime.now().time() < nonstop_object.start and not ( if datetime.now().time() < nonstop_object.start:
nonstop_object.end < nonstop_object.start):
dates = dates[1:] dates = dates[1:]
context['nonstop'] = nonstop_object context['nonstop'] = nonstop_object
context['nonstop_dates'] = dates context['nonstop_dates'] = dates
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment