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 19a833b commit 7be7a44Copy full SHA for 7be7a44
services/director-v2/src/simcore_service_director_v2/modules/db/repositories/comp_runs.py
@@ -386,11 +386,14 @@ async def list_for_user_and_project_all_iterations(
386
total_count = await conn.scalar(count_query)
387
388
items = [
389
- ComputationRunRpcGet.model_validate(
390
- {
391
- **row,
392
- "state": DB_TO_RUNNING_STATE[row["state"]],
393
- }
+ ComputationRunRpcGet(
+ project_uuid=row.project_uuid,
+ iteration=row.iteration,
+ state=DB_TO_RUNNING_STATE[row.state],
+ info=row.info,
394
+ submitted_at=row.submitted_at,
395
+ started_at=row.started_at,
396
+ ended_at=row.ended_at,
397
)
398
async for row in await conn.stream(list_query)
399
]
0 commit comments