File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
services/web/server/src/simcore_service_webserver/workspaces Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -160,13 +160,12 @@ async def list_workspaces_for_user(
160160 count_result = await conn .execute (count_query )
161161 total_count = count_result .scalar ()
162162
163- result = await conn .execute (list_query )
164- rows = result .fetchall () or []
165- results : list [UserWorkspaceAccessRightsDB ] = [
166- UserWorkspaceAccessRightsDB .from_orm (row ) for row in rows
163+ result = await conn .stream (list_query )
164+ workspaces : list [UserWorkspaceAccessRightsDB ] = [
165+ UserWorkspaceAccessRightsDB .from_orm (row ) async for row in result
167166 ]
168167
169- return cast (int , total_count ), results
168+ return cast (int , total_count ), workspaces
170169
171170
172171async def get_workspace_for_user (
You can’t perform that action at this time.
0 commit comments