bug: fix bad " " handling in influx

This commit is contained in:
Brett Rowan
2025-03-04 19:58:44 -07:00
parent 1f9d4c8c10
commit ec1b2ca162

View File

@@ -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])