Skip to content

Commit 17602b2

Browse files
author
aviau
committed
Fixed bad string format syntax
1 parent 831bece commit 17602b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

influxdb/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def create_retention_policy(
325325
query_string = \
326326
"CREATE RETENTION POLICY %s ON %s " \
327327
"DURATION %s REPLICATION %s" % \
328-
(name, database or self._database, duration, replication)
328+
(name, (database or self._database), duration, replication)
329329

330330
if default is True:
331331
query_string += " DEFAULT"
@@ -337,14 +337,14 @@ def get_list_retention_policies(self, database=None):
337337
Get the list of retention policies
338338
"""
339339
return self.query(
340-
"SHOW RETENTION POLICIES %s" % database or self._database
340+
"SHOW RETENTION POLICIES %s" % (database or self._database)
341341
)
342342

343343
def get_list_series(self, database=None):
344344
"""
345345
Get the list of series
346346
"""
347-
return self.query("SHOW SERIES", database=database or self._database)
347+
return self.query("SHOW SERIES", database=(database or self._database))
348348

349349
def get_list_users(self):
350350
"""

0 commit comments

Comments
 (0)