diff --git a/app/scodoc/sco_gen_cal.py b/app/scodoc/sco_gen_cal.py index 45bfa21f5..54a66e9de 100644 --- a/app/scodoc/sco_gen_cal.py +++ b/app/scodoc/sco_gen_cal.py @@ -52,7 +52,7 @@ class Jour: """ Renvoie True si le jour est dans la semaine courante """ - return self.date.isocalendar()[1] == datetime.date.today().isocalendar()[1] + return self.date.isocalendar()[0:2] == datetime.date.today().isocalendar()[0:2] def get_date(self) -> str: """