]> git.0d.be Git - panikweb.git/commitdiff
turn off the radio
authorFrédéric Péters <fpeters@0d.be>
Mon, 7 Aug 2017 13:36:41 +0000 (15:36 +0200)
committerFrédéric Péters <fpeters@0d.be>
Mon, 7 Aug 2017 13:36:41 +0000 (15:36 +0200)
panikweb/views.py

index c5abcdd4b15f74a05a4f2e87047c861254c5a545..c8fc7cb3342008243ecd159ae472b198c1c137b6 100644 (file)
@@ -644,6 +644,8 @@ listen = Listen.as_view()
 def onair(request):
     if date.today() < date(2017, 8, 3):
         return {'emission': {'title': 'À partir du 3 août 17h', 'url': '/'}}
+    if date.today() > date(2017, 8, 6):
+        return {'emission': {'title': "À l'année prochaine, découvrez les podcasts !", 'url': '/'}}
     d = whatsonair()
     if d.get('episode'):
         d['episode'] = {