From 00dd207f603597f016af11729d1fd31f6391ff9a Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Tue, 26 May 2015 14:57:48 +0100 Subject: [PATCH] Take a dict of the rule, not the rule list --- synapse/push/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/push/__init__.py b/synapse/push/__init__.py index 167b973b2b..8059fff1b2 100644 --- a/synapse/push/__init__.py +++ b/synapse/push/__init__.py @@ -76,7 +76,7 @@ class Pusher(object): rules = [] for rawrule in rawrules: - rule = dict(rawrules) + rule = dict(rawrule) rule['conditions'] = json.loads(rawrule['conditions']) rule['actions'] = json.loads(rawrule['actions']) rules.append(rule)