pep8
This commit is contained in:
parent
ab1bc9bf5f
commit
81a5e0073c
|
@ -150,7 +150,9 @@ class BulkPushRuleEvaluator(object):
|
|||
event, context
|
||||
)
|
||||
|
||||
(power_levels, sender_power_level) = yield self._get_power_levels_and_sender_level(event, context)
|
||||
(power_levels, sender_power_level) = (
|
||||
yield self._get_power_levels_and_sender_level(event, context)
|
||||
)
|
||||
|
||||
evaluator = PushRuleEvaluatorForEvent(
|
||||
event, len(room_members), sender_power_level, power_levels,
|
||||
|
|
|
@ -41,7 +41,7 @@ def _sender_notification_permission(ev, condition, sender_power_level, power_lev
|
|||
notif_levels = power_levels.get('notifications', {})
|
||||
room_notif_level = notif_levels.get(notif_level_key, 50)
|
||||
|
||||
return sender_power_level >= room_notif_level;
|
||||
return sender_power_level >= room_notif_level
|
||||
|
||||
|
||||
def _test_ineq_condition(condition, number):
|
||||
|
|
Loading…
Reference in New Issue