refactor(db): 修复异步连接池无界增长,并完成 SQLAlchemy 2.0 迁移与分层归位 (#6320)

This commit is contained in:
Aqr-K
2026-08-15 06:58:38 +08:00
committed by GitHub
parent e28de9cfe1
commit 8a11214a43
252 changed files with 11405 additions and 2889 deletions
+3 -3
View File
@@ -17,8 +17,8 @@ from app.db import get_async_db, get_db
from app.db.models.subscribe import Subscribe
from app.db.models.subscribehistory import SubscribeHistory
from app.db.models.user import User
from app.db.systemconfig_oper import SystemConfigOper
from app.db.user_oper import get_current_active_user, get_current_active_user_async
from app.db.oper.systemconfig import SystemConfigOper
from app.api.deps import get_current_active_user, get_current_active_user_async
from app.adapters.external.server import MoviePilotServerHelper
from app.runtime.log import logger
from app.scheduler import Scheduler
@@ -31,7 +31,7 @@ from app.schemas.types import (
EventType,
SystemConfigKey,
)
from app.domain.media import normalize_media_source, resolve_media_identity
from app.schemas.media import normalize_media_source, resolve_media_identity
router = ResponseAPIRouter()