fix: event handlers not registered globally (#2479)

This commit is contained in:
takatost 2024-02-19 16:04:52 +08:00 committed by GitHub
parent 81c5a21b8d
commit 1bd1cd6938
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -38,10 +38,11 @@ from extensions import (
from extensions.ext_database import db from extensions.ext_database import db
from extensions.ext_login import login_manager from extensions.ext_login import login_manager
from libs.passport import PassportService from libs.passport import PassportService
# DO NOT REMOVE BELOW
from services.account_service import AccountService 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 # DO NOT REMOVE ABOVE

View File

@ -3,6 +3,7 @@ requires-python = ">=3.10"
[tool.ruff] [tool.ruff]
exclude = [ exclude = [
"app.py",
"__init__.py", "__init__.py",
"tests/", "tests/",
] ]