Chore/remove-unused-code (#5917)

This commit is contained in:
-LAN-
2024-07-04 18:18:26 +08:00
committed by GitHub
parent 5d9ad430af
commit d7f75d17cc
4 changed files with 11 additions and 36 deletions

View File

@@ -2,7 +2,7 @@ import os
from configs import dify_config
if not os.environ.get("DEBUG") or os.environ.get("DEBUG", "false").lower() != 'true':
if os.environ.get("DEBUG", "false").lower() != 'true':
from gevent import monkey
monkey.patch_all()
@@ -43,6 +43,8 @@ from extensions import (
from extensions.ext_database import db
from extensions.ext_login import login_manager
from libs.passport import PassportService
# TODO: Find a way to avoid importing models here
from models import account, dataset, model, source, task, tool, tools, web
from services.account_service import AccountService