1
0
forked from ScoDoc/ScoDoc

sco_gen_cal : correction affichage semaine/année courante

This commit is contained in:
Iziram 2024-05-15 14:16:11 +02:00
parent fa6f83722e
commit 778fecabb6

View File

@ -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:
"""