From 9de1787de6c22638320adea91461cba7fe00d40a Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Mon, 16 Jan 2023 00:16:08 +0000 Subject: [PATCH] Only look for ondemand rules in processing --- core/management/commands/processing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/management/commands/processing.py b/core/management/commands/processing.py index dd7f4fc..736dd02 100644 --- a/core/management/commands/processing.py +++ b/core/management/commands/processing.py @@ -10,7 +10,7 @@ log = logs.get_logger("processing") def process_rules(data): - all_rules = NotificationRule.objects.filter(enabled=True) + all_rules = NotificationRule.objects.filter(enabled=True, interval=0) for index, index_messages in data.items(): for message in index_messages: