This commit is contained in:
Andrew Morgan 2021-01-03 23:54:03 -05:00
parent 647233cfac
commit 9774851d5b

View file

@ -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: