From b236d6a950e7bcb10d1152dcecd74af4be41493b Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Tue, 11 Jan 2022 18:03:16 +0100 Subject: [PATCH] Si last_rappel vaut None il n'est pas inclus dans le __lt --- kfet/management/commands/sendrappelsnegatifs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kfet/management/commands/sendrappelsnegatifs.py b/kfet/management/commands/sendrappelsnegatifs.py index 2351f68f..4e2f67c3 100644 --- a/kfet/management/commands/sendrappelsnegatifs.py +++ b/kfet/management/commands/sendrappelsnegatifs.py @@ -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: