From b30e08ea5ef2c97400bf75200fa6af704f29cee9 Mon Sep 17 00:00:00 2001 From: Valerij Talagayev <82884038+talagayev@users.noreply.github.com> Date: Wed, 14 Aug 2024 10:22:10 +0200 Subject: [PATCH] Update openmmdlsetup.py fixed save_uploaded_files --- openmmdl/openmmdl_setup/openmmdlsetup.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/openmmdl/openmmdl_setup/openmmdlsetup.py b/openmmdl/openmmdl_setup/openmmdlsetup.py index 28c7a49a..6b17907f 100644 --- a/openmmdl/openmmdl_setup/openmmdlsetup.py +++ b/openmmdl/openmmdl_setup/openmmdlsetup.py @@ -160,7 +160,7 @@ def configureFiles(): return showConfigureFiles() else: session["spLigName"] = request.form.get("spLigName", "") - FileUploader.save_uploaded_files(request) + FileUploader.save_uploaded_files(uploadedFiles, request) elif has_files == "no": simulation_configurator = SetupOptionsConfigurator(session) simulation_configurator.configureDefaultAmberOptions() @@ -196,22 +196,22 @@ def setAmberOptions(): if rcpType == "protRcp": if "protFile" not in request.files or request.files["protFile"].filename == "": showAmberOptions() - FileUploader.save_uploaded_files(request) + FileUploader.save_uploaded_files(uploadedFiles, request) elif rcpType == "dnaRcp": if "dnaFile" not in request.files or request.files["dnaFile"].filename == "": showAmberOptions() - FileUploader.save_uploaded_files(request) + FileUploader.save_uploaded_files(uploadedFiles, request) elif rcpType == "rnaRcp": if "rnaFile" not in request.files or request.files["rnaFile"].filename == "": showAmberOptions() - FileUploader.save_uploaded_files(request) + FileUploader.save_uploaded_files(uploadedFiles, request) elif rcpType == "carboRcp": if ( "carboFile" not in request.files or request.files["carboFile"].filename == "" ): showAmberOptions() - FileUploader.save_uploaded_files(request) + FileUploader.save_uploaded_files(uploadedFiles, request) ######## Ligand ######## session["nmLig"] = ( @@ -226,7 +226,7 @@ def setAmberOptions(): or request.files["nmLigFile"].filename == "" ): showAmberOptions() - FileUploader.save_uploaded_files(request) + FileUploader.save_uploaded_files(uploadedFiles, request) ## for special ligand if session["spLig"]: @@ -239,7 +239,7 @@ def setAmberOptions(): or request.files["frcmodFile"].filename == "" ): showAmberOptions() - FileUploader.save_uploaded_files(request) + FileUploader.save_uploaded_files(uploadedFiles, request) ######## Add Water/Membrane ########