summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-03-02 17:37:22 +0000
committerDavid Baker <dave@matrix.org>2015-03-02 17:37:22 +0000
commit09f9e8493c574b1c0c120e153cda4beebafce7dd (patch)
tree4ee89a1fa4ad987ebfa8e1b740f5dd0c67183533
parentBlank lines (diff)
downloadsynapse-09f9e8493c574b1c0c120e153cda4beebafce7dd.tar.xz
Oops, missed a replacement.
-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 3db38a949a..822c978e85 100644
--- a/synapse/rest/client/v1/push_rule.py
+++ b/synapse/rest/client/v1/push_rule.py
@@ -387,7 +387,7 @@ def _priority_class_from_spec(spec):
 def _priority_class_to_template_name(pc):
     if pc > PRIORITY_CLASS_MAP['override']:
         # per-device
-        prio_class_index = pc - len(PushRuleRestServlet.PRIORITY_CLASS_MAP)
+        prio_class_index = pc - len(PRIORITY_CLASS_MAP)
         return PRIORITY_CLASS_INVERSE_MAP[prio_class_index]
     else:
         return PRIORITY_CLASS_INVERSE_MAP[pc]