1
0
mirror of https://gitlab.crans.org/bde/nk20-scripts synced 2025-02-26 18:06:32 +00:00

Compare commits

..

1 Commits

Author SHA1 Message Date
erdnaxe
d1990cc63d Merge branch 'l_eveil_du_nanax' into 'master'
L'eveil du nanax

See merge request bde/nk20-scripts!2
2022-08-31 08:24:20 +02:00

View File

@ -31,9 +31,9 @@ class Command(BaseCommand):
notes = Note.objects.filter(
Q(noteuser__user__memberships__date_end__gte=
date.today() - timedelta(days=int(365.25 * options['add_years'])))
| (Q(noteclub__isnull=False) & ~Q(noteclub__club__name__icontains='- BDE')),
| Q(noteclub__isnull=False),
balance__lte=-options["negative_amount"],
is_active=True,
is_active=True,
).order_by('balance').distinct().all()
if options["spam"]: