File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
services/web/server/src/simcore_service_webserver/projects Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments