Skip to content
Snippets Groups Projects
Commit 92fa77dd authored by imcovangent's avatar imcovangent
Browse files

Added graph name attribute as this was missing after Database loading (and...

Added graph name attribute as this was missing after Database loading (and gave problems downstream).


Former-commit-id: ccb62b21e29afd78e0b7f690c3591ceae059eb7e
parent 0a899ddb
No related branches found
No related tags found
No related merge requests found
......@@ -100,6 +100,7 @@ def kadmos_upload_file():
dgFile.save(os.path.join(UPLOAD_FOLDER, dgFile.filename))
loaded_graph = load(graphFileName, file_check_critical=False)
loaded_graph.graph["name"] = os.path.splitext(dgFile.filename)[0].replace("_",".")
# Remove the uploaded file (and if existing, database directory) from the temp folder
os.remove(graphFileName)
if os.path.exists(database_dir):
......
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