fixed some bugs with sorting

This commit is contained in:
UpstreamData
2022-05-09 09:59:48 -06:00
parent ef336a9e23
commit 1f8d92f6bb
7 changed files with 126 additions and 36 deletions

View File

@@ -98,7 +98,7 @@ class BaseMiner:
"Temperature": 0,
"Pool User": "Unknown",
"Wattage": 0,
"Split": 0,
"Split": "0",
"Pool 1": "Unknown",
"Pool 1 User": "Unknown",
"Pool 2": "",

View File

@@ -226,6 +226,6 @@ class BMMiner(BaseMiner):
data["Pool 2 User"] = pool_2_user
if quota:
data["Split"] = quota
data["Split"] = str(quota)
return data

View File

@@ -249,7 +249,7 @@ class BOSMiner(BaseMiner):
"Temperature": 0,
"Pool User": "Unknown",
"Wattage": 0,
"Split": 0,
"Split": "0",
"Pool 1": "Unknown",
"Pool 1 User": "Unknown",
"Pool 2": "",
@@ -337,7 +337,7 @@ class BOSMiner(BaseMiner):
data["Pool 2 User"] = pool_2_user
if quota:
data["Split"] = quota
data["Split"] = str(quota)
if tunerstatus:
tuner = tunerstatus.get("TUNERSTATUS")

View File

@@ -180,6 +180,6 @@ class BTMiner(BaseMiner):
data["Pool 2 User"] = pool_2_user
if quota:
data["Split"] = quota
data["Split"] = str(quota)
return data

View File

@@ -205,6 +205,6 @@ class CGMiner(BaseMiner):
data["Pool 2 User"] = pool_2_user
if quota:
data["Split"] = quota
data["Split"] = str(quota)
return data