mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 06:58:59 +08:00
fix: event handlers not registered globally (#2479)
This commit is contained in:
parent
81c5a21b8d
commit
1bd1cd6938
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@ requires-python = ">=3.10"
|
|||||||
|
|
||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
exclude = [
|
exclude = [
|
||||||
|
"app.py",
|
||||||
"__init__.py",
|
"__init__.py",
|
||||||
"tests/",
|
"tests/",
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user