refactor: Move imports to avoid circular dependencies in socket and VLCPlayerService
Some checks failed
Backend CI / lint (push) Successful in 9m24s
Backend CI / test (push) Failing after 3m55s

This commit is contained in:
JSC
2025-08-19 22:32:19 +02:00
parent b808cfaddf
commit 9653062003
2 changed files with 7 additions and 4 deletions

View File

@@ -5,8 +5,6 @@ import logging
import socketio
from app.core.config import settings
from app.core.database import get_session_factory
from app.services.vlc_player import get_vlc_player_service
from app.utils.auth import JWTUtils
from app.utils.cookies import extract_access_token_from_cookies
@@ -123,6 +121,10 @@ class SocketManager:
return
try:
# Import here to avoid circular imports
from app.core.database import get_session_factory # noqa: PLC0415
from app.services.vlc_player import get_vlc_player_service # noqa: PLC0415
# Get VLC player service with database factory
vlc_player = get_vlc_player_service(get_session_factory())