BDE memberships can start on 1st august

This commit is contained in:
Yohann D'ANELLO 2020-08-02 08:47:18 +02:00
parent 4b37f8286f
commit 1f300c3b7b
1 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ CT = {
def get_date_end(date_start): def get_date_end(date_start):
date_end = copy.deepcopy(date_start) date_end = copy.deepcopy(date_start)
if date_start.month > 8: if date_start.month >= 8:
date_end = date_start.replace(year=date_start.year + 1) date_end = date_start.replace(year=date_start.year + 1)
date_end = date_end.replace(month=9, day=30) date_end = date_end.replace(month=9, day=30)
return date_end return date_end