File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
services/web/server/src/simcore_service_webserver/projects Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1111 pass_or_acquire_connection ,
1212 transaction_context ,
1313)
14+ from sqlalchemy import sql
1415from sqlalchemy .ext .asyncio import AsyncConnection
1516
1617from ..db .plugin import get_asyncpg_engine
@@ -50,7 +51,7 @@ async def patch_project(
5051 return ProjectDB .model_validate (row )
5152
5253
53- def _select_trashed_by_primary_gid_query ():
54+ def _select_trashed_by_primary_gid_query () -> sql . Select :
5455 return sa .select (
5556 users .c .primary_gid .label ("trashed_by_primary_gid" ),
5657 ).select_from (projects .outerjoin (users , projects .c .trashed_by == users .c .id ))
Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ async def get_project_for_user(
220220 and project .get ("trashed_by" , project .get ("trashedBy" )) is not None
221221 ):
222222 project .update (
223- trashed_by_primary_gid = await _projects_db .get_trashed_by_primary_gid (
223+ trashedByPrimaryGid = await _projects_db .get_trashed_by_primary_gid (
224224 app , projects_uuid = project ["uuid" ]
225225 )
226226 )
You can’t perform that action at this time.
0 commit comments