Skip to content

Commit 494e654

Browse files
committed
Fix bug in query parameter
1 parent 46818fb commit 494e654

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

influxdb/client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,10 @@ def query(self, query, time_precision='s', chunked=False):
144144
else:
145145
chunked_param = 'false'
146146

147-
encoded_query = urllib.urlencode(query)
147+
encoded_query = urllib.urlencode({
148+
'q': query})
148149

149-
url_format = "{0}/db/{1}/series?q={2}&u={3}&p={4}"
150+
url_format = "{0}/db/{1}/series?{2}&u={3}&p={4}"
150151
url_format += "&time_precision={5}&chunked={6}"
151152

152153
response = requests.get(url_format.format(

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