respoinfo.bde => respo-info.bde

This commit is contained in:
Yohann D'ANELLO 2020-08-06 08:11:44 +02:00
parent 47dc4dd9e6
commit a66ce1ad85
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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)