Browse Source

fix a bug

chenhaiyang 1 year ago
parent
commit
a59cb5fb75
2 changed files with 2 additions and 2 deletions
  1. 1 1
      app/api/routers/devices.py
  2. 1 1
      app/main.py

+ 1 - 1
app/api/routers/devices.py

@@ -248,7 +248,7 @@ async def get_acatvi_early_start_prediction(
         params: domain_devices.ACATVIEarlyStartPredictionRequest,
         db: Session = Depends(get_db)
 ):
-    minutes = build_acatvi_early_start_prediction(params, db)
+    minutes = await build_acatvi_early_start_prediction(params, db)
 
     logger.info(params)
     logger.info(f"{params.space_id} - {minutes}")

+ 1 - 1
app/main.py

@@ -27,7 +27,7 @@ logging.getLogger().handlers = [InterceptHandler()]
 
 
 def get_application() -> FastAPI:
-    application = FastAPI(title=settings.PROJECT_NAME, root_path="/env-py")
+    application = FastAPI(title=settings.PROJECT_NAME)
 
     application.add_event_handler("startup", create_start_app_handler())