We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e180983 + 8aea425 commit 61c95c2Copy full SHA for 61c95c2
apswutils/db.py
@@ -419,7 +419,8 @@ def query(
419
:param params: Parameters to use in that query - an iterable for ``where id = ?``
420
parameters, or a dictionary for ``where id = :id``
421
"""
422
- cursor = self.execute(sql, tuple(params or tuple()))
+ params = params if isinstance(params, dict) else tuple(params or tuple())
423
+ cursor = self.execute(sql, params)
424
cursor.row_trace = cursor_row2dict
425
yield from cursor
426
0 commit comments