mirror of https://github.com/langgenius/dify.git
style: apply Ruff auto-fixes from pre-commit hook
Made-with: Cursor
This commit is contained in:
parent
499d237b7e
commit
c189de10f1
|
|
@ -129,7 +129,7 @@ def create_app() -> tuple[socketio.WSGIApp, DifyApp]:
|
|||
app = create_flask_app_with_configs()
|
||||
initialize_extensions(app)
|
||||
|
||||
setattr(sio, "app", app)
|
||||
sio.app = app
|
||||
socketio_app = socketio.WSGIApp(sio, app)
|
||||
|
||||
end_time = time.perf_counter()
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ def socket_connect(sid, environ, auth):
|
|||
logging.warning("Socket connect rejected: missing user_id (sid=%s)", sid)
|
||||
return False
|
||||
|
||||
with getattr(sio, "app").app_context():
|
||||
with sio.app.app_context():
|
||||
user = AccountService.load_logged_in_account(account_id=user_id)
|
||||
if not user:
|
||||
logging.warning("Socket connect rejected: user not found (user_id=%s, sid=%s)", user_id, sid)
|
||||
|
|
|
|||
|
|
@ -138,7 +138,6 @@ if TYPE_CHECKING:
|
|||
from core.skill.entities.skill_bundle import SkillBundle
|
||||
from core.skill.entities.tool_dependencies import ToolDependencies, ToolDependency
|
||||
from core.tools.__base.tool import Tool
|
||||
|
||||
from dify_graph.file.models import File
|
||||
from dify_graph.runtime import GraphRuntimeState
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue