Basculement année au 1.7 (au lieu de 1.8)

This commit is contained in:
Claude Paroz 2022-07-07 15:59:55 +02:00
parent 3f57977822
commit b9363bee67
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ def school_year(date, as_tuple=False):
* as_tuple = False: "2013 — 2014"
* as_tuple = True: [2013, 2014]
"""
if date.month < 8:
if date.month < 7:
start_year = date.year - 1
else:
start_year = date.year