Si last_rappel vaut None il n'est pas inclus dans le __lt

This commit is contained in:
Tom Hubrecht 2022-01-11 18:03:16 +01:00
parent 4b29097f02
commit b236d6a950

View file

@ -34,7 +34,7 @@ class Command(BaseCommand):
start__lt=now - first_delay, last_rappel__isnull=True
)
accounts_periodic_mail = account_negatives.filter(
last_rappel__isnull=False, last_rappel__lt=now - periodic_delay
last_rappel__lt=now - periodic_delay
)
for neg in accounts_first_mail: