fixed a bug with tags not getting assigned to second and third boards with multiple chains

This commit is contained in:
UpstreamData
2022-01-27 14:03:54 -07:00
parent 8e253ffa05
commit 0426bb289e
2 changed files with 1 additions and 2 deletions

View File

@@ -303,7 +303,6 @@ async def get_formatted_data(ip: ipaddress.ip_address):
try:
# no devs command, it will fail in this case
miner_data = await miner.api.multicommand("summary", "temps", "tunerstatus", "pools", "stats")
print(miner_data)
except APIError as e:
print(e)
return {'TH/s': 0, 'IP': str(miner.ip), 'model': 'Unknown', 'temp': 0, 'host': 'Unknown', 'user': 'Unknown',

View File

@@ -154,7 +154,7 @@ async def scan_and_get_data(network):
board_right = " ".join([chain["chip_status"] for chain in data_point["data"][2]]).replace("o", "")
else:
row_colors.append((ip_table_index, "bad"))
if False in [chain[0]["nominal"] for chain in [data_point["data"][key] for key in data_point["data"].keys()]]:
if False in [chain["nominal"] for board in [data_point["data"][key] for key in data_point["data"].keys()] for chain in board]:
row_colors.append((ip_table_index, "bad"))
else:
row_colors.append((ip_table_index, "bad"))