always notify for two days (#41070)

This commit is contained in:
Frédéric Péters 2020-03-26 18:21:43 +01:00
parent 9398c04220
commit e551fe8898
1 changed files with 1 additions and 1 deletions

View File

@ -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')