From 77a15a1297f200efe0432d7bf6e1084c8efbb56b Mon Sep 17 00:00:00 2001 From: Sourcery AI <> Date: Tue, 13 Oct 2020 00:07:20 +0000 Subject: [PATCH] 'Refactored by Sourcery' --- nodeconnection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodeconnection.py b/nodeconnection.py index ea413b0..53233cd 100644 --- a/nodeconnection.py +++ b/nodeconnection.py @@ -611,8 +611,8 @@ def localrebalancelnd(): \t\033[2;32;40mLOCAL\033[0;37;40m BALANCE \t\033[1;31;40mREMOTE\033[0;37;40m BALANCE """) - for r in range(len(n)): - s = n[r] + for item in n: + s = item if int(s['local_balance']) >= int(s['remote_balance']): total = int(s['local_balance']) - int(s['remote_balance']) elif int(s['local_balance']) <= int(s['remote_balance']):