diff --git a/apps/api/app/api/routes/templates_editor/clips.py b/apps/api/app/api/routes/templates_editor/clips.py index 21585103d..aecd11c88 100755 --- a/apps/api/app/api/routes/templates_editor/clips.py +++ b/apps/api/app/api/routes/templates_editor/clips.py @@ -691,8 +691,9 @@ def _update_mediakit_recommendations_async( 失败时静默处理,不影响已创建的片段。 """ from app.config import settings - from packages.adapters.sqlalchemy_impl.session import build_session_factory + from packages.adapters.sqlalchemy_impl.asset_repository import SQLAlchemyAssetRepository + from packages.adapters.sqlalchemy_impl.session import build_session_factory db = None try: