remove unused imports

This commit is contained in:
Billy Bao 2025-12-11 17:11:49 +08:00
parent 889604ee9f
commit 0fb5dd89da
6 changed files with 1 additions and 7 deletions

View file

@ -28,7 +28,6 @@ from api.db.services import UserService
from api.utils.json_encode import CustomJSONEncoder from api.utils.json_encode import CustomJSONEncoder
from api.utils import commands from api.utils import commands
from flask_mail import Mail
from quart_auth import Unauthorized from quart_auth import Unauthorized
from common import settings from common import settings
from api.utils.api_utils import server_error_response from api.utils.api_utils import server_error_response

View file

@ -82,7 +82,6 @@ async def create(tenant_id):
status=StatusEnum.VALID.value) status=StatusEnum.VALID.value)
try: try:
from threading import Thread
user_name = "" user_name = ""
_, user = UserService.get_by_id(current_user.id) _, user = UserService.get_by_id(current_user.id)

View file

@ -22,7 +22,7 @@ import secrets
import time import time
from datetime import datetime from datetime import datetime
from quart import redirect, request, session, make_response from quart import redirect, request, session
from werkzeug.security import check_password_hash, generate_password_hash from werkzeug.security import check_password_hash, generate_password_hash
from api.apps.auth import get_auth_client from api.apps.auth import get_auth_client

View file

@ -21,10 +21,8 @@ import re
import socket import socket
from urllib.parse import urlparse from urllib.parse import urlparse
import aiosmtplib import aiosmtplib
from api.apps import app
from email.mime.text import MIMEText from email.mime.text import MIMEText
from email.header import Header from email.header import Header
from flask_mail import Message
from common import settings from common import settings
from quart import render_template_string from quart import render_template_string
from api.utils.email_templates import EMAIL_TEMPLATES from api.utils.email_templates import EMAIL_TEMPLATES

View file

@ -1,5 +1,4 @@
"""Box connector""" """Box connector"""
import os
import logging import logging
from datetime import datetime, timezone from datetime import datetime, timezone
from typing import Any from typing import Any

View file

@ -33,7 +33,6 @@ from datetime import datetime, timezone
from typing import Any from typing import Any
from flask import json from flask import json
import trio
from api.db.services.connector_service import ConnectorService, SyncLogsService from api.db.services.connector_service import ConnectorService, SyncLogsService
from api.db.services.knowledgebase_service import KnowledgebaseService from api.db.services.knowledgebase_service import KnowledgebaseService