Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit 48f6983

Browse files
author
kakao
committed
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 02ddf0e and c92bb4e, but the change was not reflected to the docstring.
1 parent fc0235e commit 48f6983

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

influxdb/client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,8 @@ def write_points(self,
561561
:type points: (if protocol is 'json') list of dicts, where each dict
562562
represents a point.
563563
(if protocol is 'line') sequence of line protocol strings.
564-
:param time_precision: Either 's', 'm', 'ms' or 'u', defaults to None
564+
:param time_precision: Either 'n', 'u', 'ms', 's', 'm' or 'h',
565+
defaults to None
565566
:type time_precision: str
566567
:param database: the database to write the points to. Defaults to
567568
the client's current database
@@ -1177,7 +1178,8 @@ def send_packet(self, packet, protocol='json', time_precision=None):
11771178
(if protocol is 'line') list of line protocol strings
11781179
:param protocol: protocol of input data, either 'json' or 'line'
11791180
:type protocol: str
1180-
:param time_precision: Either 's', 'm', 'ms' or 'u', defaults to None
1181+
:param time_precision: Either 'n', 'u', 'ms', 's', 'm' or 'h',
1182+
defaults to None
11811183
:type time_precision: str
11821184
"""
11831185
if protocol == 'json':

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