bug: fix bad " " handling in influx
This commit is contained in:
@@ -476,8 +476,8 @@ class MinerData(BaseModel):
|
|||||||
if serialized is not None:
|
if serialized is not None:
|
||||||
field_data.append(serialized)
|
field_data.append(serialized)
|
||||||
|
|
||||||
tags_str = ",".join(tag_data)
|
tags_str = ",".join(tag_data).replace(" ", "\\ ")
|
||||||
field_str = ",".join(field_data)
|
field_str = ",".join(field_data).replace(" ", "\\ ")
|
||||||
timestamp = str(self.timestamp * 10**9)
|
timestamp = str(self.timestamp * 10**9)
|
||||||
|
|
||||||
return " ".join([tags_str, field_str, timestamp])
|
return " ".join([tags_str, field_str, timestamp])
|
||||||
|
|||||||
Reference in New Issue
Block a user