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

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

Commit 49165be

Browse files
Add support for custom indexes for query in the DataFrameClient (#785)
1 parent 6c45f30 commit 49165be

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎influxdb/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ def alter_retention_policy(self, name, database=None,
860860
query_string = (
861861
"ALTER RETENTION POLICY {0} ON {1}"
862862
).format(quote_ident(name),
863-
quote_ident(database or self._database), shard_duration)
863+
quote_ident(database or self._database))
864864
if duration:
865865
query_string += " DURATION {0}".format(duration)
866866
if shard_duration:
@@ -958,7 +958,7 @@ def drop_user(self, username):
958958
:param username: the username to drop
959959
:type username: str
960960
"""
961-
text = "DROP USER {0}".format(quote_ident(username), method="POST")
961+
text = "DROP USER {0}".format(quote_ident(username))
962962
self.query(text, method="POST")
963963

964964
def set_user_password(self, username, password):

‎influxdb/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def __new__(cls, *args, **kwargs):
8282
allowed_time_precisions = ['h', 'm', 's', 'ms', 'u', 'ns', None]
8383
if cls._time_precision not in allowed_time_precisions:
8484
raise AttributeError(
85-
'In {0}, time_precision is set, but invalid use any of {}.'
85+
'In {0}, time_precision is set, but invalid use any of {1}.'
8686
.format(cls.__name__, ','.join(allowed_time_precisions)))
8787

8888
cls._retention_policy = getattr(_meta, 'retention_policy', None)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /