mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-08 00:45:00 -04:00
Fix relative imports so they work in both py3 and py27
This commit is contained in:
parent
ea72bd9600
commit
7076082ae6
17 changed files with 22 additions and 22 deletions
|
@ -18,8 +18,8 @@ import ujson as json
|
|||
|
||||
from twisted.internet import defer
|
||||
|
||||
import baserules
|
||||
from push_rule_evaluator import PushRuleEvaluatorForEvent
|
||||
from .baserules import list_with_base_rules
|
||||
from .push_rule_evaluator import PushRuleEvaluatorForEvent
|
||||
|
||||
from synapse.api.constants import EventTypes
|
||||
|
||||
|
@ -39,7 +39,7 @@ def _get_rules(room_id, user_ids, store):
|
|||
rules_enabled_by_user = yield store.bulk_get_push_rules_enabled(user_ids)
|
||||
|
||||
rules_by_user = {
|
||||
uid: baserules.list_with_base_rules([
|
||||
uid: list_with_base_rules([
|
||||
decode_rule_json(rule_list)
|
||||
for rule_list in rules_by_user.get(uid, [])
|
||||
])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue