prise en cmpte changement d'annee en decembre
This commit is contained in:
parent
b986850003
commit
f10e8ae322
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user