Skip to content

Commit 7be7a44

Browse files
committed
sqlalchemy 2.0
1 parent 19a833b commit 7be7a44

File tree

1 file changed

+8
-5
lines changed
  • services/director-v2/src/simcore_service_director_v2/modules/db/repositories

1 file changed

+8
-5
lines changed

services/director-v2/src/simcore_service_director_v2/modules/db/repositories/comp_runs.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -386,11 +386,14 @@ async def list_for_user_and_project_all_iterations(
386386
total_count = await conn.scalar(count_query)
387387

388388
items = [
389-
ComputationRunRpcGet.model_validate(
390-
{
391-
**row,
392-
"state": DB_TO_RUNNING_STATE[row["state"]],
393-
}
389+
ComputationRunRpcGet(
390+
project_uuid=row.project_uuid,
391+
iteration=row.iteration,
392+
state=DB_TO_RUNNING_STATE[row.state],
393+
info=row.info,
394+
submitted_at=row.submitted_at,
395+
started_at=row.started_at,
396+
ended_at=row.ended_at,
394397
)
395398
async for row in await conn.stream(list_query)
396399
]

0 commit comments

Comments
 (0)