diff --git a/api/views.py b/api/views.py index 0c08a1b..275fa42 100644 --- a/api/views.py +++ b/api/views.py @@ -291,8 +291,8 @@ class API(object): else: chanlimit = int(chanlimit) online_relays = helpers.get_active_relays(net) - for inst in online_relays: - inst.chanlimit = chanlimit + for r in online_relays: + r.chanlimit = chanlimit elif item == "security": security = data[item][0] if security not in ["ssl", "plain"]: