summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--git-interface/db.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-interface/db.py b/git-interface/db.py
index 060689b1..75d2283d 100644
--- a/git-interface/db.py
+++ b/git-interface/db.py
@@ -32,7 +32,7 @@ class Connection:
raise ValueError('unsupported database backend')
def execute(self, query, params=()):
- if self._paramstyle == 'format':
+ if self._paramstyle in ('format', 'pyformat'):
query = query.replace('%', '%%').replace('?', '%s')
elif self._paramstyle == 'qmark':
pass