respoinfo.bde => respo-info.bde
This commit is contained in:
parent
47dc4dd9e6
commit
a66ce1ad85
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue