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

@ -187,7 +187,10 @@ def runMain():
if len(sys.argv) >= 3:
year = int(sys.argv[2])
else:
year = currentDate.year
if currentDate.month == 1:
year = currentDate.year - 1
else:
year = currentDate.year
stats = Stats(year,mois)
res = stats.parse()