diff options
author | Mark Haines <mark.haines@matrix.org> | 2015-05-26 14:57:48 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2015-05-26 14:57:48 +0100 |
commit | 00dd207f603597f016af11729d1fd31f6391ff9a (patch) | |
tree | 1823f2d26a7bdff319d092b83a7ad182f6578ef9 /synapse/push/__init__.py | |
parent | SYN-390: Don't modify the dictionary returned from the database here either (diff) | |
download | synapse-00dd207f603597f016af11729d1fd31f6391ff9a.tar.xz |
Take a dict of the rule, not the rule list
Diffstat (limited to 'synapse/push/__init__.py')
-rw-r--r-- | synapse/push/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |