Skip to content

Commit c6435c4

Browse files
committed
Broken query() was not building a valid url
1 parent 50279bf commit c6435c4

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

influxdb/client.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,8 @@ def query(self, query, time_precision='s', chunked=False):
157157
else:
158158
chunked_param = 'false'
159159

160-
url = "{0}/db/{1}/series"
161-
162-
url.format(
163-
self._baseurl,
164-
self._database
165-
)
160+
# Build the URL of the serie to query
161+
url = "{0}/db/{1}/series".format(self._baseurl, self._database)
166162

167163
params = {
168164
'u': self._username,

0 commit comments

Comments
 (0)