Fix variable shadowing

This commit is contained in:
Mark Veidemanis 2022-08-14 15:43:48 +01:00
parent 559e1f4afd
commit 281eb75b26
1 changed files with 2 additions and 2 deletions

View File

@ -291,8 +291,8 @@ class API(object):
else: else:
chanlimit = int(chanlimit) chanlimit = int(chanlimit)
online_relays = helpers.get_active_relays(net) online_relays = helpers.get_active_relays(net)
for inst in online_relays: for r in online_relays:
inst.chanlimit = chanlimit r.chanlimit = chanlimit
elif item == "security": elif item == "security":
security = data[item][0] security = data[item][0]
if security not in ["ssl", "plain"]: if security not in ["ssl", "plain"]: