Rappels négatifs K-Fêt: ajustements cosmétiques

This commit is contained in:
Martin Pépin 2021-10-22 22:36:30 +02:00
parent d8cabda678
commit a77cf59b18
No known key found for this signature in database
GPG key ID: E7520278B1774448
3 changed files with 13 additions and 9 deletions

View file

@ -31,11 +31,11 @@ class Command(BaseCommand):
.filter(last_rappel__lt=now - periodic_delay)
.all()
)
for account in accounts_first_mail:
account.send_rappel()
self.stdout.write("Mail de rappel pour %s envoyé avec succès." % account)
for account in accounts_periodic_mail:
account.send_rappel()
self.stdout.write("Mail de rappel pour %s envoyé avec succès." % account)
for neg in accounts_first_mail:
neg.send_rappel()
self.stdout.write(f"Mail de rappel pour {neg.account} envoyé avec succès.")
for neg in accounts_periodic_mail:
neg.send_rappel()
self.stdout.write("Mail de rappel pour {neg.account} envoyé avec succès.")
if (not accounts_first_mail) and (not accounts_periodic_mail):
self.stdout.write("Aucun mail à envoyer.")