diff --git a/statistiques/parseStats.py b/statistiques/parseStats.py index c3d2118..6213ef3 100755 --- a/statistiques/parseStats.py +++ b/statistiques/parseStats.py @@ -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()