fix fetch_unpacked row factory

This commit is contained in:
Infinidoge 2024-12-23 00:51:48 -05:00
parent 11e0b05be1
commit 38e41dc1b5
Signed by: Infinidoge
SSH key fingerprint: SHA256:GT2StvPQMMfFHyiiFJymQxfTG/z6EWLJ6NWItf5K5sA

View file

@ -112,8 +112,8 @@ def unpack(lst_of_tpl):
async def fetch_unpacked(db, sql, params=None):
cur = db.cursor()
cur.row_factory = first
cur = await db.cursor()
cur.row_factory = lambda cursor, row: first(row)
cur = await cur.execute(sql, params)
return await cur.fetchall()