1
0
mirror of https://github.com/osmarks/meme-search-engine.git synced 2025-02-08 07:00:06 +00:00

stop requiring internal aiosqlite patch

This commit is contained in:
osmarks 2024-01-25 00:01:02 +00:00
parent e3ffc426b7
commit e9a7493343

2
mse.py
View File

@ -83,7 +83,7 @@ class Index:
async with self.lock:
with ProcessPoolExecutor(max_workers=12) as executor:
print("Indexing")
conn = await aiosqlite.connect(CONFIG["db_path"], parent_loop=asyncio.get_running_loop())
conn = await aiosqlite.connect(CONFIG["db_path"])
conn.row_factory = aiosqlite.Row
await conn.executescript("""
CREATE TABLE IF NOT EXISTS files (