We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77c89ec commit 7908307Copy full SHA for 7908307
services/director-v2/src/simcore_service_director_v2/modules/db/repositories/comp_runs.py
@@ -323,11 +323,14 @@ async def list_for_user__only_latest_iterations(
323
total_count = await conn.scalar(count_query)
324
325
items = [
326
- ComputationRunRpcGet.model_validate(
327
- {
328
- **row,
329
- "state": DB_TO_RUNNING_STATE[row.state],
330
- }
+ ComputationRunRpcGet(
+ project_uuid=row.project_uuid,
+ iteration=row.iteration,
+ state=DB_TO_RUNNING_STATE[row.state],
+ info=row.info,
331
+ submitted_at=row.submitted_at,
332
+ started_at=row.started_at,
333
+ ended_at=row.ended_at,
334
)
335
async for row in await conn.stream(list_query)
336
]
0 commit comments