mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-18 16:02:15 +01:00
pep8
This commit is contained in:
parent
985ce80375
commit
e433393c4f
1 changed files with 3 additions and 0 deletions
|
@ -32,9 +32,11 @@ INEQUALITY_EXPR = re.compile("^([=<>]*)([0-9]*)$")
|
||||||
def _room_member_count(ev, condition, room_member_count):
|
def _room_member_count(ev, condition, room_member_count):
|
||||||
return _test_ineq_condition(condition, room_member_count)
|
return _test_ineq_condition(condition, room_member_count)
|
||||||
|
|
||||||
|
|
||||||
def _sender_power_level(ev, condition, power_level):
|
def _sender_power_level(ev, condition, power_level):
|
||||||
return _test_ineq_condition(condition, power_level)
|
return _test_ineq_condition(condition, power_level)
|
||||||
|
|
||||||
|
|
||||||
def _test_ineq_condition(condition, number):
|
def _test_ineq_condition(condition, number):
|
||||||
if 'is' not in condition:
|
if 'is' not in condition:
|
||||||
return False
|
return False
|
||||||
|
@ -60,6 +62,7 @@ def _test_ineq_condition(condition, number):
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
def tweaks_for_actions(actions):
|
def tweaks_for_actions(actions):
|
||||||
tweaks = {}
|
tweaks = {}
|
||||||
for a in actions:
|
for a in actions:
|
||||||
|
|
Loading…
Reference in a new issue