forked from DGNum/gestioCOF
Rappels négatifs K-Fêt: ajustements cosmétiques
This commit is contained in:
parent
d8cabda678
commit
a77cf59b18
3 changed files with 13 additions and 9 deletions
|
@ -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.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue