mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 15:34:48 -04:00
This really serves me right for ever making a map called 'map'.
This commit is contained in:
parent
0c4b696727
commit
6927b6b197
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ class PushRuleRestServlet(RestServlet):
|
||||||
def priority_class_from_spec(self, spec):
|
def priority_class_from_spec(self, spec):
|
||||||
if spec['template'] not in PushRuleRestServlet.PRIORITY_CLASS_MAP.keys():
|
if spec['template'] not in PushRuleRestServlet.PRIORITY_CLASS_MAP.keys():
|
||||||
raise InvalidRuleException("Unknown template: %s" % (spec['kind']))
|
raise InvalidRuleException("Unknown template: %s" % (spec['kind']))
|
||||||
pc = map[spec['template']]
|
pc = PushRuleRestServlet.PRIORITY_CLASS_MAP[spec['template']]
|
||||||
|
|
||||||
if spec['scope'] == 'device':
|
if spec['scope'] == 'device':
|
||||||
pc += 5
|
pc += 5
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue