mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-05-08 17:05:02 -04:00
Oops, missed a replacement.
This commit is contained in:
parent
20436cdf75
commit
09f9e8493c
1 changed files with 1 additions and 1 deletions
|
@ -387,7 +387,7 @@ def _priority_class_from_spec(spec):
|
||||||
def _priority_class_to_template_name(pc):
|
def _priority_class_to_template_name(pc):
|
||||||
if pc > PRIORITY_CLASS_MAP['override']:
|
if pc > PRIORITY_CLASS_MAP['override']:
|
||||||
# per-device
|
# 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]
|
return PRIORITY_CLASS_INVERSE_MAP[prio_class_index]
|
||||||
else:
|
else:
|
||||||
return PRIORITY_CLASS_INVERSE_MAP[pc]
|
return PRIORITY_CLASS_INVERSE_MAP[pc]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue