update current year calculation
authorFrédéric Péters <fpeters@0d.be>
Sun, 1 Aug 2021 11:09:04 +0000 (13:09 +0200)
committerFrédéric Péters <fpeters@0d.be>
Sun, 1 Aug 2021 11:09:04 +0000 (13:09 +0200)
panikweb_esperanzah/views.py

index 5b4e99a..5a06c20 100644 (file)
@@ -39,7 +39,7 @@ class EmissionDetailView(panikweb.views.EmissionDetailView):
         if emission.archived:
             current_year = emission.creation_timestamp.replace(month=5, day=1)
         else:
-            current_year = datetime.datetime.now().replace(month=5, day=1).replace(year=2019)
+            current_year = datetime.datetime.now().replace(month=5, day=1).replace(year=2021)
 
         episodes_queryset = Episode.objects.select_related()
         if episode_ids is not None: