diff --git a/bda/management/commands/sendrappels.py b/bda/management/commands/sendrappels.py index e66b0b23..1e8da240 100644 --- a/bda/management/commands/sendrappels.py +++ b/bda/management/commands/sendrappels.py @@ -14,7 +14,7 @@ class Command(BaseCommand): def handle(self, *args, **options): now = timezone.now() - delay = timedelta(4) + delay = timedelta(days=4) shows = Spectacle.objects \ .filter(date__range=(now, now+delay)) \ .filter(tirage__active=True) \ @@ -22,8 +22,6 @@ class Command(BaseCommand): .all() for show in shows: show.send_rappel() - show.rappel_sent = now - show.save() self.stdout.write( 'Mails de rappels pour %s envoyés avec succès.' % show) if not shows: