Only look for ondemand rules in processing

This commit is contained in:
Mark Veidemanis 2023-01-16 00:16:08 +00:00
parent a2207bbcf4
commit 9de1787de6
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 1 additions and 1 deletions

View File

@ -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: