瀏覽代碼

fix: event handlers not registered globally (#2479)

tags/0.5.6
takatost 1 年之前
父節點
當前提交
1bd1cd6938
沒有連結到貢獻者的電子郵件帳戶。
共有 2 個檔案被更改,包括 4 行新增2 行删除
  1. 3
    2
      api/app.py
  2. 1
    0
      api/pyproject.toml

+ 3
- 2
api/app.py 查看文件

@@ -38,10 +38,11 @@ from extensions import (
from extensions.ext_database import db
from extensions.ext_login import login_manager
from libs.passport import PassportService

# DO NOT REMOVE BELOW
from services.account_service import AccountService

# DO NOT REMOVE BELOW
from events import event_handlers
from models import account, dataset, model, source, task, tool, tools, web
# DO NOT REMOVE ABOVE



+ 1
- 0
api/pyproject.toml 查看文件

@@ -3,6 +3,7 @@ requires-python = ">=3.10"

[tool.ruff]
exclude = [
"app.py",
"__init__.py",
"tests/",
]

Loading…
取消
儲存