Skip to content
GitLab
Explore
Sign in
Commits on Source (1)
Ignore club notes that are used by the BDE for particular events
· 4471307b
MisterKrafts
authored
Apr 06, 2023
4471307b
Hide whitespace changes
Inline
Side-by-side
management/commands/send_mail_to_negative_balances.py
View file @
4471307b
...
...
@@ -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
"
]:
...
...