Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit 0277c3f

Browse filesBrowse files
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 0277c3f
Copy full SHA for 0277c3f

File tree

Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed

‎influxdb/client.py

Copy file name to clipboardExpand all lines: influxdb/client.py
+4-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.