Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
1bd1cd69
Unverified
Commit
1bd1cd69
authored
Feb 19, 2024
by
takatost
Committed by
GitHub
Feb 19, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: event handlers not registered globally (#2479)
parent
81c5a21b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
app.py
api/app.py
+3
-2
pyproject.toml
api/pyproject.toml
+1
-0
No files found.
api/app.py
View file @
1bd1cd69
...
...
@@ -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
...
...
api/pyproject.toml
View file @
1bd1cd69
...
...
@@ -3,6 +3,7 @@ requires-python = ">=3.10"
[tool.ruff]
exclude
=
[
"app.py"
,
"__init__.py"
,
"tests/"
,
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment