prise en cmpte changement d'annee en decembre

This commit is contained in:
David 2023-01-02 10:37:33 +01:00
parent b986850003
commit f10e8ae322

View File

@ -186,6 +186,9 @@ def runMain():
currentDate = datetime.date.today()
if len(sys.argv) >= 3:
year = int(sys.argv[2])
else:
if currentDate.month == 1:
year = currentDate.year - 1
else:
year = currentDate.year