Don't add 1 to current relays when iterating
This commit is contained in:
parent
8cd22888b7
commit
ea81fc80e3
|
@ -20,7 +20,7 @@ def allRelaysActive(net):
|
||||||
"""
|
"""
|
||||||
activeRelays = getActiveRelays(net)
|
activeRelays = getActiveRelays(net)
|
||||||
debug(f"allRelaysActive() active relays for {net}: {activeRelays}")
|
debug(f"allRelaysActive() active relays for {net}: {activeRelays}")
|
||||||
relayNum = len(activeRelays) + 1
|
relayNum = len(activeRelays)
|
||||||
existNum = 0
|
existNum = 0
|
||||||
for i in activeRelays:
|
for i in activeRelays:
|
||||||
name = net + str(i)
|
name = net + str(i)
|
||||||
|
|
Loading…
Reference in New Issue