From fd6e922214d4350b5617707b1f91b2b1d79cba71 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Sat, 28 Sep 2019 13:35:32 +0200 Subject: [PATCH] alerts run next day --- rowers/management/commands/processalerts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rowers/management/commands/processalerts.py b/rowers/management/commands/processalerts.py index 08e39bcc..febfe20f 100644 --- a/rowers/management/commands/processalerts.py +++ b/rowers/management/commands/processalerts.py @@ -38,7 +38,7 @@ class Command(BaseCommand): else: testing = False - todaysalerts = Alert.objects.filter(next_run__lte = datetime.date.today(),emailalert=True) + todaysalerts = Alert.objects.filter(next_run__lt = datetime.date.today(),emailalert=True) for alert in todaysalerts: stats = alerts.alert_get_stats(alert)