Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
Update time_precision param values in docstring
Browse files Browse the repository at this point in the history
Clearly state nanosecond and hour precision support for functions `send_packet` and `write_points` in docstring.
Nanosecond precision support was added in commits 02ddf0e and c92bb4e, but the change was not reflected to the docstring.
  • Loading branch information
chrominium97 committed Aug 3, 2020
1 parent fc0235e commit 0277c3f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions influxdb/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,8 @@ def write_points(self,
:type points: (if protocol is 'json') list of dicts, where each dict
represents a point.
(if protocol is 'line') sequence of line protocol strings.
:param time_precision: Either 's', 'm', 'ms' or 'u', defaults to None
:param time_precision: Either 'n', 'u', 'ms', 's', 'm' or 'h',
defaults to None
:type time_precision: str
:param database: the database to write the points to. Defaults to
the client's current database
Expand Down Expand Up @@ -1177,7 +1178,8 @@ def send_packet(self, packet, protocol='json', time_precision=None):
(if protocol is 'line') list of line protocol strings
:param protocol: protocol of input data, either 'json' or 'line'
:type protocol: str
:param time_precision: Either 's', 'm', 'ms' or 'u', defaults to None
:param time_precision: Either 'n', 'u', 'ms', 's', 'm' or 'h',
defaults to None
:type time_precision: str
"""
if protocol == 'json':
Expand Down

0 comments on commit 0277c3f

Please sign in to comment.