always notify for two days (#41070)
This commit is contained in:
parent
9398c04220
commit
e551fe8898
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue