Skip to content
Snippets Groups Projects
Commit ecc65ac4 authored by baigner's avatar baigner
Browse files

Fixed issues with saving and uploading mdpg

Former-commit-id: ac673f522c959169e94cef89e87a001c15a098b3
parent eb349c88
No related branches found
Tags v0.7.3
No related merge requests found
Pipeline #192815 canceled
......@@ -124,11 +124,11 @@ def kadmosUploadFile():
# Use function order for VISTOMS if it is available in the graph information
function_order = None
if graph.graph_has_nested_attributes('problem_formulation', 'function_order'):
if graph.graph_has_nested_attributes('problem_formulation', 'function_order') and mpg==None:
function_order = graph.graph['problem_formulation']['function_order']
# Add the graph with the updated function order to VISTOMS
newVistomsData = graph.vistoms_add_json(graph_id=newGraphID, mpg=mpg, function_order=function_order)
newVistomsData = graph.vistoms_add_json(graph_id=newGraphID, function_order=function_order, mpg=mpg)
return newVistomsData
......@@ -378,7 +378,7 @@ def kadmosFindTempGraphs():
# Use function order for VISTOMS if it is available in the graph information
function_order = None
if graph.graph_has_nested_attributes('problem_formulation', 'function_order'):
if graph.graph_has_nested_attributes('problem_formulation', 'function_order') and mpg == None:
function_order = graph.graph['problem_formulation']['function_order']
graph.save(os.path.join(UPLOAD_FOLDER, graphFileName), file_type="kdms",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment