Store index and source as lists

This commit is contained in:
Mark Veidemanis 2023-01-16 00:23:23 +00:00
parent f5e371bf5c
commit ddffc2c3d8
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 2 additions and 2 deletions

View File

@ -401,7 +401,7 @@ class NotificationRuleData(object):
else: else:
# Get the default value for the user if not present # Get the default value for the user if not present
index = parse_index(self.user, {}, raise_error=True) index = parse_index(self.user, {}, raise_error=True)
self.parsed["index"] = index self.parsed["index"] = [index]
if "source" in self.parsed: if "source" in self.parsed:
source = self.parsed["source"] source = self.parsed["source"]
@ -413,7 +413,7 @@ class NotificationRuleData(object):
else: else:
# Get the default value for the user if not present # Get the default value for the user if not present
source = parse_source(self.user, {}, raise_error=True) source = parse_source(self.user, {}, raise_error=True)
self.parsed["source"] = source self.parsed["source"] = [source]
def parse_data(self): def parse_data(self):
""" """