We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7553d73 commit 6627efaCopy full SHA for 6627efa
influxdb/client.py
@@ -97,7 +97,8 @@ def __init__(self,
97
98
self._headers = {
99
'Content-type': 'application/json',
100
- 'Accept': 'text/plain'}
+ 'Accept': 'text/plain'
101
+ }
102
103
@staticmethod
104
def from_DSN(dsn, **kwargs):
@@ -394,17 +395,17 @@ def _write_points(self,
394
395
'points': points
396
}
397
- if tags:
398
+ if tags is not None:
399
data['tags'] = tags
400
401
params = {
402
'db': database or self._database
403
404
- if time_precision:
405
+ if time_precision is not None:
406
params['precision'] = time_precision
407
- if retention_policy:
408
+ if retention_policy is not None:
409
params['rp'] = retention_policy
410
411
if self.use_udp:
0 commit comments