From ddffc2c3d88e0fedbe29e8c8e0cf1e3972fb723f Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Mon, 16 Jan 2023 00:23:23 +0000 Subject: [PATCH] Store index and source as lists --- core/lib/rules.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/lib/rules.py b/core/lib/rules.py index 0c81a6f..6fb9309 100644 --- a/core/lib/rules.py +++ b/core/lib/rules.py @@ -401,7 +401,7 @@ class NotificationRuleData(object): else: # Get the default value for the user if not present index = parse_index(self.user, {}, raise_error=True) - self.parsed["index"] = index + self.parsed["index"] = [index] if "source" in self.parsed: source = self.parsed["source"] @@ -413,7 +413,7 @@ class NotificationRuleData(object): else: # Get the default value for the user if not present source = parse_source(self.user, {}, raise_error=True) - self.parsed["source"] = source + self.parsed["source"] = [source] def parse_data(self): """