diff --git a/rowers/management/commands/processalerts.py b/rowers/management/commands/processalerts.py index b9efe371..acd48c35 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 <= datetime.date.today(),emailalert=True) + todaysalerts = Alert.objects.filter(next_run__lte = datetime.date.today(),emailalert=True) for alert in todaysalerts: stats = alerts.alert_get_stats(alert)