From 9e18ae7b60d2b1fada45fdb7ebd59a38073cc9bf Mon Sep 17 00:00:00 2001 From: smithumble Date: Thu, 12 Sep 2024 17:14:04 +0300 Subject: [PATCH] Fix upload file name generation --- procedure_tools/utils/process.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/procedure_tools/utils/process.py b/procedure_tools/utils/process.py index c8c20ad..083c83c 100644 --- a/procedure_tools/utils/process.py +++ b/procedure_tools/utils/process.py @@ -739,7 +739,8 @@ def upload_documents( path = get_data_file_path(get_data_path(args.data), data_file) with read_file(path, context=context, exit_filename=args.stop) as content: tender_document_data = json.loads(content) - upload_file = f"{prefix}{tender_document_data["data"]["title"]}" + document_file = tender_document_data["data"]["title"] + upload_file = f"{prefix}{document_file}" ds_response = upload_document_ds(ds_client, args, context, upload_file) if ds_response: document_data = ds_response.json()["data"]