lint
This commit is contained in:
parent
647233cfac
commit
9774851d5b
1 changed files with 1 additions and 2 deletions
|
@ -109,8 +109,7 @@ class Storage(object):
|
||||||
# logger.info("Database migrated to v1")
|
# logger.info("Database migrated to v1")
|
||||||
|
|
||||||
def _execute(self, *args):
|
def _execute(self, *args):
|
||||||
"""A wrapper around cursor.execute that transforms placeholder ?'s to %s for postgres
|
"""A wrapper around cursor.execute that transforms placeholder ?'s to %s for postgres"""
|
||||||
"""
|
|
||||||
if self.db_type == "postgres":
|
if self.db_type == "postgres":
|
||||||
self.cursor.execute(args[0].replace("?", "%s"), *args[1:])
|
self.cursor.execute(args[0].replace("?", "%s"), *args[1:])
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue