File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
services/web/server/src/simcore_service_webserver/projects Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 88from common_library .exclude import Unset , is_set
99from models_library .basic_types import IDStr
1010from models_library .groups import GroupID
11- from models_library .projects import Project , ProjectID
11+ from models_library .projects import ProjectID
1212from models_library .rest_ordering import OrderBy , OrderDirection
1313from models_library .rest_pagination import MAXIMUM_NUMBER_OF_ITEMS_PER_PAGE
1414from models_library .workspaces import WorkspaceID
@@ -156,7 +156,7 @@ async def batch_get_projects(
156156 connection : AsyncConnection | None = None ,
157157 * ,
158158 project_uuids : list [ProjectID ],
159- ) -> list [Project ]:
159+ ) -> list [ProjectDBGet ]:
160160 if not project_uuids :
161161 return []
162162 async with pass_or_acquire_connection (get_asyncpg_engine (app ), connection ) as conn :
@@ -166,7 +166,7 @@ async def batch_get_projects(
166166 .where (projects .c .uuid .in_ ([f"{ uuid } " for uuid in project_uuids ]))
167167 )
168168 result = await conn .stream (query )
169- return [Project .model_validate (row ) async for row in result ]
169+ return [ProjectDBGet .model_validate (row ) async for row in result ]
170170
171171
172172def _select_trashed_by_primary_gid_query () -> sql .Select :
Original file line number Diff line number Diff line change 153153 ProjectTooManyProjectOpenedError ,
154154 ProjectTypeAndTemplateIncompatibilityError ,
155155)
156- from .models import ProjectDict , ProjectPatchInternalExtended
156+ from .models import ProjectDBGet , ProjectDict , ProjectPatchInternalExtended
157157from .settings import ProjectsSettings , get_plugin_settings
158158from .utils import extract_dns_without_default_port
159159
@@ -277,7 +277,7 @@ async def batch_get_project_name(
277277
278278async def batch_get_projects (
279279 app : web .Application , project_uuids : list [ProjectID ]
280- ) -> list [Project ]:
280+ ) -> list [ProjectDBGet ]:
281281 return await _projects_repository .batch_get_projects (
282282 app = app ,
283283 project_uuids = project_uuids ,
You can’t perform that action at this time.
0 commit comments