소스 검색

fix: resolve the error with the db-pool-stat endpoint (#9478)

zhuhao 6 달 전
부모
커밋
b9bf60ea23
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      api/app.py

+ 1 - 0
api/app.py

@@ -20,6 +20,7 @@ from app_factory import create_app
 
 
 # DO NOT REMOVE BELOW
 # DO NOT REMOVE BELOW
 from events import event_handlers  # noqa: F401
 from events import event_handlers  # noqa: F401
+from extensions.ext_database import db
 
 
 # TODO: Find a way to avoid importing models here
 # TODO: Find a way to avoid importing models here
 from models import account, dataset, model, source, task, tool, tools, web  # noqa: F401
 from models import account, dataset, model, source, task, tool, tools, web  # noqa: F401