From 38e41dc1b5d6612f4b6f403355cc04aff62abacb Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Mon, 23 Dec 2024 00:51:48 -0500 Subject: [PATCH] fix fetch_unpacked row factory --- nomen/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nomen/utils.py b/nomen/utils.py index 7186c19..3b9861e 100644 --- a/nomen/utils.py +++ b/nomen/utils.py @@ -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()