diff options
author | Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> | 2022-05-17 16:29:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-17 15:29:06 +0100 |
commit | 6edefef60289cc54e17fd6af838eb66c4973f5f5 (patch) | |
tree | fd254e6d378e0f877c39826b89e8db47785abcdb /synapse/rest/client/push_rule.py | |
parent | Add a new room version for MSC3787's knock+restricted join rule (#12623) (diff) | |
download | synapse-6edefef60289cc54e17fd6af838eb66c4973f5f5.tar.xz |
Add some type hints to datastore (#12717)
Diffstat (limited to 'synapse/rest/client/push_rule.py')
-rw-r--r-- | synapse/rest/client/push_rule.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/client/push_rule.py b/synapse/rest/client/push_rule.py index b98640b14a..8191b4e32c 100644 --- a/synapse/rest/client/push_rule.py +++ b/synapse/rest/client/push_rule.py @@ -148,9 +148,9 @@ class PushRuleRestServlet(RestServlet): # we build up the full structure and then decide which bits of it # to send which means doing unnecessary work sometimes but is # is probably not going to make a whole lot of difference - rules = await self.store.get_push_rules_for_user(user_id) + rules_raw = await self.store.get_push_rules_for_user(user_id) - rules = format_push_rules_for_user(requester.user, rules) + rules = format_push_rules_for_user(requester.user, rules_raw) path_parts = path.split("/")[1:] |