Skip to content
GitLab
Explore
Sign in
Commits on Source (1)
respoinfo.bde => respo-info.bde
· a66ce1ad
ynerant
authored
Aug 06, 2020
a66ce1ad
Hide whitespace changes
Inline
Side-by-side
management/commands/check_consistency.py
View file @
a66ce1ad
...
...
@@ -55,6 +55,6 @@ class Command(BaseCommand):
self
.
stderr
.
write
(
err_log
)
if
options
[
"
mail
"
]:
send_mail
(
"
[Note Kfet] La base de données n
'
est pas consistante
"
,
err_log
,
"
NoteKfet2020 <notekfet2020@crans.org>
"
,
[
"
respoinfo.bde@lists.crans.org
"
])
"
NoteKfet2020 <notekfet2020@crans.org>
"
,
[
"
respo
-
info.bde@lists.crans.org
"
])
exit
(
1
if
error
else
0
)
management/commands/send_mail_to_negative_balances.py
View file @
a66ce1ad
...
...
@@ -21,7 +21,7 @@ class Command(BaseCommand):
activate
(
'
fr
'
)
notes
=
NoteUser
.
objects
.
filter
(
balance__lte
=-
options
[
"
negative_amount
"
],
user__memberships__date_end__gte
=
timezone
.
now
(),
user__memberships__date_end__gte
=
timezone
.
now
()
.
date
()
,
).
order_by
(
'
balance
'
).
distinct
().
all
()
if
options
[
"
spam
"
]:
...
...
@@ -32,5 +32,5 @@ class Command(BaseCommand):
plain_text
=
render_to_string
(
"
note/mails/negative_notes_report.txt
"
,
context
=
dict
(
notes
=
notes
))
html
=
render_to_string
(
"
note/mails/negative_notes_report.html
"
,
context
=
dict
(
notes
=
notes
))
send_mail
(
"
[Note Kfet] Liste des négatifs
"
,
plain_text
,
"
Note Kfet 2020 <notekfet2020@crans.org>
"
,
recipient_list
=
[
"
respoinfo.bde@lists.crans.org
"
,
"
tresorerie.bde@lists.crans.org
"
],
recipient_list
=
[
"
respo
-
info.bde@lists.crans.org
"
,
"
tresorerie.bde@lists.crans.org
"
],
html_message
=
html
)