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:
parent
e3ffc426b7
commit
e9a7493343
4
mse.py
4
mse.py
@ -83,7 +83,7 @@ class Index:
|
|||||||
async with self.lock:
|
async with self.lock:
|
||||||
with ProcessPoolExecutor(max_workers=12) as executor:
|
with ProcessPoolExecutor(max_workers=12) as executor:
|
||||||
print("Indexing")
|
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
|
conn.row_factory = aiosqlite.Row
|
||||||
await conn.executescript("""
|
await conn.executescript("""
|
||||||
CREATE TABLE IF NOT EXISTS files (
|
CREATE TABLE IF NOT EXISTS files (
|
||||||
@ -223,4 +223,4 @@ if __name__ == "__main__":
|
|||||||
loop = asyncio.new_event_loop()
|
loop = asyncio.new_event_loop()
|
||||||
asyncio.set_event_loop(loop)
|
asyncio.set_event_loop(loop)
|
||||||
loop.run_until_complete(main())
|
loop.run_until_complete(main())
|
||||||
loop.run_forever()
|
loop.run_forever()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user