From a66ce1ad8520b792e6fdcbc6c9196cb3542565c1 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 6 Aug 2020 08:11:44 +0200 Subject: [PATCH] respoinfo.bde => respo-info.bde --- management/commands/check_consistency.py | 2 +- management/commands/send_mail_to_negative_balances.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/management/commands/check_consistency.py b/management/commands/check_consistency.py index 39226e6..83fec96 100644 --- a/management/commands/check_consistency.py +++ b/management/commands/check_consistency.py @@ -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 ", ["respoinfo.bde@lists.crans.org"]) + "NoteKfet2020 ", ["respo-info.bde@lists.crans.org"]) exit(1 if error else 0) diff --git a/management/commands/send_mail_to_negative_balances.py b/management/commands/send_mail_to_negative_balances.py index 86d9e52..00ce4b5 100644 --- a/management/commands/send_mail_to_negative_balances.py +++ b/management/commands/send_mail_to_negative_balances.py @@ -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 ", - 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)