Compare commits

...

2 Commits

Author SHA1 Message Date
rlali 20a676ff21 Merge branch 'add_year_tag' into 'master'
Extraction ML Adhérents des années N et N-years

See merge request bde/nk20-scripts!3
2023-04-11 12:00:47 +02:00
misterkrafts 4471307b37 Ignore club notes that are used by the BDE for particular events 2023-04-06 17:57:32 +02:00
1 changed files with 2 additions and 2 deletions

View File

@ -32,9 +32,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__isnull=False) & ~Q(noteclub__club__name__icontains='- BDE')),
balance__lte=-options["negative_amount"],
is_active=True,
is_active=True,
).order_by('balance').distinct().all()
if options["spam"]: