File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
services/web/server/src/simcore_service_webserver/projects Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ async def patch_project(
5353
5454def _select_trashed_by_primary_gid_query () -> sql .Select :
5555 return sa .select (
56+ projects .c .uuid ,
5657 users .c .primary_gid .label ("trashed_by_primary_gid" ),
5758 ).select_from (projects .outerjoin (users , projects .c .trashed_by == users .c .id ))
5859
@@ -106,4 +107,6 @@ async def batch_get_trashed_by_primary_gid(
106107 )
107108 async with pass_or_acquire_connection (get_asyncpg_engine (app ), connection ) as conn :
108109 result = await conn .stream (query )
109- return [row .trashed_by_primary_gid async for row in result ]
110+ rows = {row .uuid : row .trashed_by_primary_gid async for row in result }
111+
112+ return [rows .get (uuid ) for uuid in projects_uuids_str ]
You can’t perform that action at this time.
0 commit comments