Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit f832aa3

Browse files
committed
data is a list, not a dict
1 parent bb6a47f commit f832aa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

influxdb/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def request(self, url, method='GET', params=None, data=None,
7171
"""
7272
url = "{0}/{1}".format(self._baseurl, url)
7373

74-
if isinstance(data, dict):
74+
if isinstance(data, list):
7575
data = json.dumps(data)
7676

7777
if params is None:

0 commit comments

Comments
 (0)