diff options
author | David Baker <dave@matrix.org> | 2015-01-28 14:41:51 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2015-01-28 14:41:51 +0000 |
commit | 2cfdfee572dc037b65571ab72efcb3223c7d8d11 (patch) | |
tree | 9cff00c88c3a6f5d87036afde314b3ef7737e515 /synapse | |
parent | Unnecessary newlines. (diff) | |
download | synapse-2cfdfee572dc037b65571ab72efcb3223c7d8d11.tar.xz |
spaces
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/rest/client/v1/push_rule.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/client/v1/push_rule.py b/synapse/rest/client/v1/push_rule.py index dbcac3d4e1..2b33bdac08 100644 --- a/synapse/rest/client/v1/push_rule.py +++ b/synapse/rest/client/v1/push_rule.py @@ -346,7 +346,7 @@ def _priority_class_to_template_name(pc): def _rule_to_template(rule): template_name = _priority_class_to_template_name(rule['priority_class']) if template_name in ['override', 'underride']: - return {k:rule[k] for k in ["rule_id", "conditions", "actions"]} + return {k: rule[k] for k in ["rule_id", "conditions", "actions"]} elif template_name in ["sender", "room"]: return {k: rule[k] for k in ["rule_id", "actions"]} elif template_name == 'content': @@ -355,7 +355,7 @@ def _rule_to_template(rule): thecond = rule["conditions"][0] if "pattern" not in thecond: return None - ret = {k:rule[k] for k in ["rule_id", "actions"]} + ret = {k: rule[k] for k in ["rule_id", "actions"]} ret["pattern"] = thecond["pattern"] return ret |