bug: swap to lower case booleans
This commit is contained in:
committed by
Brett Rowan
parent
5bb04b2af4
commit
1f9d4c8c10
@@ -407,7 +407,7 @@ class MinerData(BaseModel):
|
||||
return value.as_influxdb(key)
|
||||
|
||||
def serialize_bool(key: str, value: bool):
|
||||
return f"{key}={value}"
|
||||
return f"{key}={str(value).lower()}"
|
||||
|
||||
def serialize_pool_metrics(key: str, value: PoolMetrics):
|
||||
return value.as_influxdb(key)
|
||||
|
||||
@@ -87,7 +87,7 @@ class HashBoard(BaseModel):
|
||||
return f"{key}={round(float(value), 2)}"
|
||||
|
||||
def serialize_bool(key: str, value: bool):
|
||||
return f"{key}={value}"
|
||||
return f"{key}={str(value).lower()}"
|
||||
|
||||
serialization_map_instance = {
|
||||
AlgoHashRateType: serialize_algo_hash_rate,
|
||||
|
||||
@@ -108,7 +108,7 @@ class PoolMetrics(BaseModel):
|
||||
return f'{key}="{str(value)}"'
|
||||
|
||||
def serialize_bool(key: str, value: bool):
|
||||
return f"{key}={value}"
|
||||
return f"{key}={str(value).lower()}"
|
||||
|
||||
serialization_map = {
|
||||
int: serialize_int,
|
||||
|
||||
Reference in New Issue
Block a user