0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-17 15:31:19 +01:00

Take a dict of the rule, not the rule list

This commit is contained in:
Mark Haines 2015-05-26 14:57:48 +01:00
parent 804b732aab
commit 00dd207f60

View file

@ -76,7 +76,7 @@ class Pusher(object):
rules = [] rules = []
for rawrule in rawrules: for rawrule in rawrules:
rule = dict(rawrules) rule = dict(rawrule)
rule['conditions'] = json.loads(rawrule['conditions']) rule['conditions'] = json.loads(rawrule['conditions'])
rule['actions'] = json.loads(rawrule['actions']) rule['actions'] = json.loads(rawrule['actions'])
rules.append(rule) rules.append(rule)