added red highlight to miners with bad boards

This commit is contained in:
UpstreamData
2022-01-25 15:14:33 -07:00
parent dcf1a805c5
commit 6fd631df5b
4 changed files with 35 additions and 9 deletions

View File

@@ -119,10 +119,15 @@ class BOSMiner(BaseMiner):
boards = {}
for board in devs:
boards[board["ID"]] = []
if not board['Chips'] == 63:
nominal = False
else:
nominal = True
boards[board["ID"]].append({
"chain": board["ID"],
"chip_count": board['Chips'],
"chip_status": "o" * board['Chips']
"chip_status": "o" * board['Chips'],
"nominal": nominal
})
return boards