fixed a bug with tags not getting assigned to second and third boards with multiple chains
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user