From 1f300c3b7bac0b7a31c1a252a83ba68a8268d33d Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Sun, 2 Aug 2020 08:47:18 +0200 Subject: [PATCH] BDE memberships can start on 1st august --- management/commands/import_transaction.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/management/commands/import_transaction.py b/management/commands/import_transaction.py index 4f75acd..e5ad4ba 100644 --- a/management/commands/import_transaction.py +++ b/management/commands/import_transaction.py @@ -53,8 +53,8 @@ CT = { def get_date_end(date_start): date_end = copy.deepcopy(date_start) - if date_start.month > 8: - date_end = date_start.replace(year=date_start.year+1) + if date_start.month >= 8: + date_end = date_start.replace(year=date_start.year + 1) date_end = date_end.replace(month=9, day=30) return date_end