Skip to content

Commit

Permalink
Merge pull request #93 from ProzorroUKR/dev
Browse files Browse the repository at this point in the history
Bid documents packs
  • Loading branch information
smithumble authored Jul 18, 2023
2 parents d9c9992 + 4d2e452 commit 824ae05
Show file tree
Hide file tree
Showing 137 changed files with 180 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
1 change: 1 addition & 0 deletions procedure_tools/data/esco/bid_confidential_document.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
1 change: 1 addition & 0 deletions procedure_tools/data/esco/bid_eligibility_document.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
1 change: 1 addition & 0 deletions procedure_tools/data/esco/bid_financial_document.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
1 change: 1 addition & 0 deletions procedure_tools/data/esco/bid_qualification_document.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bid document example
45 changes: 44 additions & 1 deletion procedure_tools/utils/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,11 +464,54 @@ def create_bids(client, ds_client, args, tender_id, filename_prefix=""):
if data_file.startswith("{}bid_document".format(filename_prefix)):
ds_response = upload_document(ds_client, args, data_file)
if ds_response:
bid_documents.append(ds_response.json()["data"])
document_data = ds_response.json()["data"]
bid_documents.append(document_data)
for data_file in get_data_all_files(get_data_path(args.data)):
if data_file.startswith(
"{}bid_confidential_document".format(filename_prefix)
):
ds_response = upload_document(ds_client, args, data_file)
if ds_response:
document_data = ds_response.json()["data"]
document_data["confidentiality"] = "buyerOnly"
document_data[
"confidentialityRationale"
] = f"Some {'long ' * 10}rationale"
bid_documents.append(document_data)
bid_eligibility_documents = []
for data_file in get_data_all_files(get_data_path(args.data)):
if data_file.startswith(
"{}bid_eligibility_document".format(filename_prefix)
):
ds_response = upload_document(ds_client, args, data_file)
if ds_response:
document_data = ds_response.json()["data"]
bid_eligibility_documents.append(document_data)
bid_financial_documents = []
for data_file in get_data_all_files(get_data_path(args.data)):
if data_file.startswith("{}bid_financial_document".format(filename_prefix)):
ds_response = upload_document(ds_client, args, data_file)
if ds_response:
document_data = ds_response.json()["data"]
bid_financial_documents.append(document_data)
bid_qualification_documents = []
for data_file in get_data_all_files(get_data_path(args.data)):
if data_file.startswith(
"{}bid_qualification_document".format(filename_prefix)
):
ds_response = upload_document(ds_client, args, data_file)
if ds_response:
document_data = ds_response.json()["data"]
bid_qualification_documents.append(document_data)
path = get_data_file_path(get_data_path(args.data), bid_data_file)
with read_file(path, exit_filename=args.stop) as content:
bid_create_data = json.loads(content)
bid_create_data["data"]["documents"] = bid_documents
bid_create_data["data"]["eligibilityDocuments"] = bid_eligibility_documents
bid_create_data["data"]["financialDocuments"] = bid_financial_documents
bid_create_data["data"][
"qualificationDocuments"
] = bid_qualification_documents
response = client.post_bid(
tender_id,
bid_create_data,
Expand Down

0 comments on commit 824ae05

Please sign in to comment.