1
0
mirror of https://gitlab.crans.org/bde/nk20-scripts synced 2024-12-25 00:42:23 +00:00

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

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)