Skip to content

Commit f5bc155

Browse files
committed
if value is int, type cast and add 'i' per changes in new influx
1 parent dcb446f commit f5bc155

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

influxdb/line_protocol.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ def make_lines(data, precision=None):
116116
key = _escape_tag(field_key)
117117
value = _escape_value(point['fields'][field_key])
118118
if key != '' and value != '':
119+
if isinstance(value, int):
120+
value = str(value) + 'i'
119121
field_values.append("{key}={value}".format(
120122
key=key,
121123
value=value

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy