]> git.0d.be Git - panikweb.git/commitdiff
playlist: fix links for nonstop spanning midnight
authorFrédéric Péters <fpeters@0d.be>
Sun, 29 Nov 2015 12:26:37 +0000 (13:26 +0100)
committerFrédéric Péters <fpeters@0d.be>
Sun, 29 Nov 2015 12:26:37 +0000 (13:26 +0100)
panikweb/views.py

index 3872ac4a83165d35d1d02a9ae6daf4ed026c7645..56ebb0f33ddbccd22a57854b2c2b69824baa1ab9 100644 (file)
@@ -110,8 +110,7 @@ class EmissionDetailView(DetailView, EmissionMixin):
         else:
             today = date.today()
             dates = [today - timedelta(days=x) for x in range(7)]
-            if datetime.now().time() < nonstop_object.start and not (
-                    nonstop_object.end < nonstop_object.start):
+            if datetime.now().time() < nonstop_object.start:
                 dates = dates[1:]
             context['nonstop'] = nonstop_object
             context['nonstop_dates'] = dates