Skip to content

Commit babe195

Browse files
committed
worksforme
1 parent 1c8a145 commit babe195

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

services/web/server/src/simcore_service_webserver/projects/_projects_service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1824,6 +1824,7 @@ async def add_project_states_for_user(
18241824
computational_node_states = computation_task.pipeline_details.node_states
18251825

18261826
for node_uuid, node in project["workbench"].items():
1827+
assert isinstance(node_uuid, str) # nosec
18271828
assert isinstance(node, dict) # nosec
18281829

18291830
node_lock_state = await _get_node_share_state(
@@ -1841,7 +1842,7 @@ async def add_project_states_for_user(
18411842
node_state_dict = json_loads(
18421843
node_state.model_dump_json(by_alias=True, exclude_unset=True)
18431844
)
1844-
node.setdefault("state", node_state_dict)
1845+
node.setdefault("state", {}).update(node_state_dict)
18451846
if "progress" in node["state"] and node["state"]["progress"] is not None:
18461847
# ensure progress is a percentage
18471848
node["progress"] = round(node["state"]["progress"] * 100.0)

0 commit comments

Comments
 (0)