fixed a bug with fault lighting bugging the tool

This commit is contained in:
UpstreamData
2022-02-23 11:56:21 -07:00
parent 4a10efd7a4
commit ca52e40a6a

View File

@@ -65,7 +65,7 @@ async def miner_light(ips: list):
async def flip_light(ip): async def flip_light(ip):
ip_list = window['ip_table'].Widget ip_list = window['ip_table'].Widget
miner = await miner_factory.get_miner(ip) miner = await miner_factory.get_miner(ip)
index = [item[0] for item in window["ip_table"].Values].index(ip) index = [item[0] for item in window["ip_table"].Values].index(ip) + 1
index_tags = ip_list.item(index)['tags'] index_tags = ip_list.item(index)['tags']
if "light" not in index_tags: if "light" not in index_tags:
ip_list.item(index, tags=([*index_tags, "light"])) ip_list.item(index, tags=([*index_tags, "light"]))