Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f5bc155

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

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed

‎influxdb/line_protocol.py

Copy file name to clipboardExpand all lines: influxdb/line_protocol.py
+2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.