Skip to content

Commit 7908307

Browse files
committed
sql 2.0
1 parent 77c89ec commit 7908307

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
@@ -323,11 +323,14 @@ async def list_for_user__only_latest_iterations(
323323
total_count = await conn.scalar(count_query)
324324

325325
items = [
326-
ComputationRunRpcGet.model_validate(
327-
{
328-
**row,
329-
"state": DB_TO_RUNNING_STATE[row.state],
330-
}
326+
ComputationRunRpcGet(
327+
project_uuid=row.project_uuid,
328+
iteration=row.iteration,
329+
state=DB_TO_RUNNING_STATE[row.state],
330+
info=row.info,
331+
submitted_at=row.submitted_at,
332+
started_at=row.started_at,
333+
ended_at=row.ended_at,
331334
)
332335
async for row in await conn.stream(list_query)
333336
]

0 commit comments

Comments
 (0)