From e551fe889813834b08cfed96d26bd42ffd7590b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 26 Mar 2020 18:21:43 +0100 Subject: [PATCH] always notify for two days (#41070) --- .../management/commands/notify_sectors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passerelle_montpellier_encombrants/management/commands/notify_sectors.py b/passerelle_montpellier_encombrants/management/commands/notify_sectors.py index 0f48612..976128d 100644 --- a/passerelle_montpellier_encombrants/management/commands/notify_sectors.py +++ b/passerelle_montpellier_encombrants/management/commands/notify_sectors.py @@ -28,9 +28,9 @@ class Command(BaseCommand): # we don't notify during the weekend return tomorrows = [datetime.today() + timedelta(days=1)] + tomorrows.append(datetime.today() + timedelta(days=2)) if datetime.today().weekday() == 4: # on Fridays we also notify about Sundays (just to be sure) and Mondays - tomorrows.append(datetime.today() + timedelta(days=2)) tomorrows.append(datetime.today() + timedelta(days=3)) for tomorrow in tomorrows: filter_query = '?filter=all&filter-date=%s&full=on' % tomorrow.strftime('%Y-%m-%d')