From 001a0c1552e2df873ab5d4da46ac3498c59f079f Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Mon, 30 Dec 2024 02:21:36 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20premi=C3=A8re=20semaine=20de=20l'ann?= =?UTF-8?q?=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/agenda_culturel/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agenda_culturel/views.py b/src/agenda_culturel/views.py index 14575ff..5884ea3 100644 --- a/src/agenda_culturel/views.py +++ b/src/agenda_culturel/views.py @@ -226,7 +226,7 @@ def month_view(request, year=None, month=None): def week_view(request, year=None, week=None, home=False): now = date.today() if year is None: - year = now.year + year = now.isocalendar()[0] if week is None: week = now.isocalendar()[1]