summary refs log tree commit diff
path: root/synapse/rest/client/v1
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-01-23 10:21:47 +0000
committerDavid Baker <dave@matrix.org>2015-01-23 10:21:47 +0000
commit6927b6b19783d7134eba3461c4fafe4efdec40f1 (patch)
tree6678375c9ba5c1b0a0d851baad1bb4453097d04f /synapse/rest/client/v1
parentMerge branch 'develop' into pushers (diff)
downloadsynapse-6927b6b19783d7134eba3461c4fafe4efdec40f1.tar.xz
This really serves me right for ever making a map called 'map'.
Diffstat (limited to 'synapse/rest/client/v1')
-rw-r--r--synapse/rest/client/v1/push_rule.py2
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