From 778fecabb645259aa4c88ed3292f4579c7c2920f Mon Sep 17 00:00:00 2001 From: Iziram Date: Wed, 15 May 2024 14:16:11 +0200 Subject: [PATCH] =?UTF-8?q?sco=5Fgen=5Fcal=20:=20correction=20affichage=20?= =?UTF-8?q?semaine/ann=C3=A9e=20courante?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/scodoc/sco_gen_cal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: """