forked from ScoDoc/ScoDoc
sco_gen_cal : correction affichage semaine/année courante
This commit is contained in:
parent
fa6f83722e
commit
778fecabb6
@ -52,7 +52,7 @@ class Jour:
|
|||||||
"""
|
"""
|
||||||
Renvoie True si le jour est dans la semaine courante
|
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:
|
def get_date(self) -> str:
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user