made sure there will always be board 6, 7, and 8 in tunerstatus

This commit is contained in:
UpstreamData
2022-04-18 16:12:12 -06:00
parent 2a132c8325
commit c7b7a6e7c5

View File

@@ -248,6 +248,15 @@ class TestbenchMiner:
"status": board["Status"],
}
if len(tuner_data.keys()) < 3:
for board in [6, 7, 8]:
if f"board_{board}" not in tuner_data.keys():
temps_data[f"board_{board}"] = {
"power_limit": 0,
"real_power": 0,
"status": "ERROR: No board found!",
}
# set the miner data
miner_data = {
"IP": str(self.host),