]> git.0d.be Git - panikweb-esperanzah.git/commitdiff
update /onair.json message
authorFrédéric Péters <fpeters@0d.be>
Mon, 1 Aug 2022 19:34:10 +0000 (21:34 +0200)
committerFrédéric Péters <fpeters@0d.be>
Mon, 1 Aug 2022 19:34:10 +0000 (21:34 +0200)
panikweb_esperanzah/views.py

index bd64f5cf9c25247d0e1f206fc0783a2f991db334..d25450b99fb3c5d392fcfe7ffbbb6147f54ccbb7 100644 (file)
@@ -95,9 +95,7 @@ archives = ArchivesView.as_view()
 
 def onair(request):
     if datetime.date.today() >= datetime.date(2022, 8, 1):
-        return JsonResponse(
-            {'data': {'emission': {'title': 'On se revoit en 2023, découvrez les podcasts !', 'url': '/'}}}
-        )
+        return JsonResponse({'data': {'emission': {'title': 'Découvrez les podcasts !', 'url': '/'}}})
 
     playing_txt = os.path.join(settings.MEDIA_ROOT, 'playing.txt')
     if os.path.exists(playing_txt):