Skip to content

Commit cacfba6

Browse files
committed
forgot
1 parent 2d5a3e7 commit cacfba6

File tree

1 file changed

+2
-3
lines changed
  • services/web/server/src/simcore_service_webserver/workspaces

1 file changed

+2
-3
lines changed

services/web/server/src/simcore_service_webserver/workspaces/_groups_db.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,8 @@ async def list_workspace_groups(
9292
)
9393

9494
async with pass_or_acquire_connection(get_asyncpg_engine(app), connection) as conn:
95-
result = await conn.execute(stmt)
96-
rows = result.fetchall() or []
97-
return [WorkspaceGroupGetDB.from_orm(row) for row in rows]
95+
result = await conn.stream(stmt)
96+
return [WorkspaceGroupGetDB.from_orm(row) async for row in result]
9897

9998

10099
async def get_workspace_group(

0 commit comments

Comments
 (0)