Fix première semaine de l'année

This commit is contained in:
Jean-Marie Favreau 2024-12-30 02:21:36 +01:00
parent 0300fd3979
commit 001a0c1552

View File

@ -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]