bug: fix int and str addition in graphQL.

This commit is contained in:
UpstreamData
2022-11-16 14:30:29 -07:00
parent eb40769ccf
commit c54f39fc77

View File

@@ -660,7 +660,7 @@ class BOSMiner(BaseMiner):
except (TypeError, KeyError, ValueError, IndexError): except (TypeError, KeyError, ValueError, IndexError):
pass pass
if groups[0]["strategy"].get("quota"): if groups[0]["strategy"].get("quota"):
data.quota = groups[0]["strategy"]["quota"] + "/" + groups[1]["strategy"]["quota"] data.quota = str(groups[0]["strategy"]["quota"]) + "/" + str(groups[1]["strategy"]["quota"])
data.fault_light = await self.check_light() data.fault_light = await self.check_light()