diff scobot/service/query.py @ 16:7a87ba2f00d9

reformat, fix some types, make more async
author drewp@bigasterisk.com
date Fri, 19 Jul 2024 00:49:38 -0700
parents 6ed25bcaaf1f
children 0d72635fc501
line wrap: on
line diff
--- a/scobot/service/query.py	Fri Jul 19 00:30:47 2024 -0700
+++ b/scobot/service/query.py	Fri Jul 19 00:49:38 2024 -0700
@@ -48,7 +48,7 @@
 
 @asynccontextmanager
 async def lifespan(app: FastAPI):
-    app.state.index = SearchIndexRO('data/build/index0')
+    app.state.index = SearchIndexRO(Path('data/build/index0'))
     yield
 
 app = FastAPI(lifespan=lifespan)