Skip to content

Commit 05a0594

Browse files
committed
Merge pull request influxdata#48 from steenzout/issue-47
fix for issue 47 in place.
2 parents 24e4542 + 18706df commit 05a0594

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

influxdb/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ def write_points_with_precision(self, data, time_precision='s'):
173173
"""
174174
Write to multiple time series names
175175
"""
176-
if time_precision not in ['s', 'm', 'u']:
176+
if time_precision not in ['s', 'm', 'ms', 'u']:
177177
raise Exception(
178-
"Invalid time precision is given. (use 's','m' or 'u')")
178+
"Invalid time precision is given. (use 's', 'm', 'ms' or 'u')")
179179

180180
url = "db/{0}/series".format(self._database)
181181

@@ -257,9 +257,9 @@ def query(self, query, time_precision='s', chunked=False):
257257
"""
258258
Quering data
259259
"""
260-
if time_precision not in ['s', 'm', 'u']:
260+
if time_precision not in ['s', 'm', 'ms', 'u']:
261261
raise Exception(
262-
"Invalid time precision is given. (use 's','m' or 'u')")
262+
"Invalid time precision is given. (use 's', 'm', 'ms' or 'u')")
263263

264264
if chunked is True:
265265
chunked_param = 'true'

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