mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-22 11:14:58 -05:00
Renumber priority classes so we can use 0 for defaults.
This commit is contained in:
parent
e0d2c6889b
commit
4bdfce30d7
@ -26,11 +26,11 @@ import json
|
|||||||
class PushRuleRestServlet(ClientV1RestServlet):
|
class PushRuleRestServlet(ClientV1RestServlet):
|
||||||
PATTERN = client_path_pattern("/pushrules/.*$")
|
PATTERN = client_path_pattern("/pushrules/.*$")
|
||||||
PRIORITY_CLASS_MAP = {
|
PRIORITY_CLASS_MAP = {
|
||||||
'underride': 0,
|
'underride': 1,
|
||||||
'sender': 1,
|
'sender': 2,
|
||||||
'room': 2,
|
'room': 3,
|
||||||
'content': 3,
|
'content': 4,
|
||||||
'override': 4,
|
'override': 5,
|
||||||
}
|
}
|
||||||
PRIORITY_CLASS_INVERSE_MAP = {v: k for k, v in PRIORITY_CLASS_MAP.items()}
|
PRIORITY_CLASS_INVERSE_MAP = {v: k for k, v in PRIORITY_CLASS_MAP.items()}
|
||||||
SLIGHTLY_PEDANTIC_TRAILING_SLASH_ERROR = (
|
SLIGHTLY_PEDANTIC_TRAILING_SLASH_ERROR = (
|
||||||
|
Loading…
Reference in New Issue
Block a user