From c3631e2cd59d34429a76f8e3f3cebd46e627513b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Fri, 15 Jul 2016 02:20:58 +0200 Subject: [PATCH] =?UTF-8?q?Am=C3=A9liorations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bda/management/commands/sendrappels.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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: