Skip to content

Commit

Permalink
Merge pull request #105 from ProzorroUKR/dev
Browse files Browse the repository at this point in the history
Fix upload file name generation
  • Loading branch information
smithumble authored Sep 12, 2024
2 parents d1381df + 9e18ae7 commit d1847b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion procedure_tools/utils/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit d1847b8

Please sign in to comment.