From 8c809ad44466d88fc97aa64a8d76d3b9eff09db3 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sun, 14 Aug 2022 15:43:48 +0100 Subject: [PATCH] Fix variable shadowing --- api/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"]: