From 0277c3fcc5b40d9d70668fbbf02c438b2a867d23 Mon Sep 17 00:00:00 2001 From: Ryu Hosung Date: Mon, 3 Aug 2020 18:47:15 +0900 Subject: [PATCH] Update time_precision param values in docstring Clearly state nanosecond and hour precision support for functions `send_packet` and `write_points` in docstring. Nanosecond precision support was added in commits 02ddf0e783d57762341fbf0662ac3b6c9696dcbc and c92bb4e4a5684611dc65b53c5791fae4bce5d94b, but the change was not reflected to the docstring. --- influxdb/client.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/influxdb/client.py b/influxdb/client.py index df9ef966..38590b1d 100644 --- a/influxdb/client.py +++ b/influxdb/client.py @@ -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 @@ -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':