diff options
author | David Baker <dave@matrix.org> | 2015-01-23 10:21:47 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2015-01-23 10:21:47 +0000 |
commit | 6927b6b19783d7134eba3461c4fafe4efdec40f1 (patch) | |
tree | 6678375c9ba5c1b0a0d851baad1bb4453097d04f /synapse/rest/client/v1/push_rule.py | |
parent | Merge branch 'develop' into pushers (diff) | |
download | synapse-6927b6b19783d7134eba3461c4fafe4efdec40f1.tar.xz |
This really serves me right for ever making a map called 'map'.
Diffstat (limited to 'synapse/rest/client/v1/push_rule.py')
-rw-r--r-- | synapse/rest/client/v1/push_rule.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v1/push_rule.py b/synapse/rest/client/v1/push_rule.py index 2803c1f071..7df3fc7f09 100644 --- a/synapse/rest/client/v1/push_rule.py +++ b/synapse/rest/client/v1/push_rule.py @@ -119,7 +119,7 @@ class PushRuleRestServlet(RestServlet): def priority_class_from_spec(self, spec): if spec['template'] not in PushRuleRestServlet.PRIORITY_CLASS_MAP.keys(): raise InvalidRuleException("Unknown template: %s" % (spec['kind'])) - pc = map[spec['template']] + pc = PushRuleRestServlet.PRIORITY_CLASS_MAP[spec['template']] if spec['scope'] == 'device': pc += 5 |