Some memberships were detected twice

This commit is contained in:
Yohann D'ANELLO 2020-08-07 14:00:50 +02:00
parent 169895a825
commit 53098f8adc
1 changed files with 1 additions and 1 deletions

View File

@ -385,7 +385,7 @@ class Command(ImportCommand):
user=user,
club_id__in=[BDE_PK, KFET_PK],
date_start__lte=soge_credit_transaction.created_at,
date_end__gte=soge_credit_transaction.created_at,
date_end__gte=soge_credit_transaction.created_at + datetime.timedelta(days=61),
).all()
for membership in memberships:
soge_credit.transactions.add(membership.transaction)