refactor: hoist Project import to top; drop unused test import

This commit is contained in:
2026-06-15 23:39:14 +00:00
parent c04830a0ad
commit 446d8704f9
2 changed files with 1 additions and 4 deletions
+1 -3
View File
@@ -27,7 +27,7 @@ from fastapi import Request, Depends
from sqlalchemy.orm import Session
from backend.database import get_db
from backend.models import Client, ClientAccessToken
from backend.models import Client, ClientAccessToken, Project
logger = logging.getLogger(__name__)
@@ -188,8 +188,6 @@ def provision_preview_session(project, db) -> str:
# owning exactly that project, so the existing client-scoped routes are automatically
# per-project. Project.client_id is left untouched (deferred per-client rollup).
from backend.models import Project # local import; Project not needed above
def portal_client_for_project(project, db) -> Client:
"""Get-or-create the dedicated 1:1 portal client for a project."""