use sqlite3 row class for rows

This commit is contained in:
Infinidoge 2024-12-31 14:15:20 -05:00
parent e31d19bcca
commit e0001625ae
Signed by: Infinidoge
SSH key fingerprint: SHA256:GT2StvPQMMfFHyiiFJymQxfTG/z6EWLJ6NWItf5K5sA

View file

@ -107,6 +107,9 @@ async def setup_db(db_file):
PRAGMA foreign_keys = ON; PRAGMA foreign_keys = ON;
""") """)
log.debug("Setting row factory")
db.row_factory = sqlite3.Row
log.debug("Adding contains function") log.debug("Adding contains function")
await db.create_function("contains", 3, contains, deterministic=True) await db.create_function("contains", 3, contains, deterministic=True)