Commit 2e06452b2a6708d1129fec3bb00d53be4a5aed81

Authored by mykhaly
1 parent 0e719e20

Remove `get_document_index_by_id` function

@@ -440,17 +440,6 @@ def get_complaint_index_by_complaintID(data, complaintID): @@ -440,17 +440,6 @@ def get_complaint_index_by_complaintID(data, complaintID):
440 return index 440 return index
441 441
442 442
443 -def get_document_index_by_id(data, document_id):  
444 - if not data:  
445 - return 0  
446 - for index, element in enumerate(data):  
447 - if element['title'] == document_id:  
448 - break  
449 - else:  
450 - index += 1  
451 - return index  
452 -  
453 -  
454 def generate_test_bid_data(tender_data): 443 def generate_test_bid_data(tender_data):
455 bid = test_bid_data() 444 bid = test_bid_data()
456 if 'aboveThreshold' in tender_data.get('procurementMethodType', '') or 'competitiveDialogue' in tender_data.get('procurementMethodType', ''): 445 if 'aboveThreshold' in tender_data.get('procurementMethodType', '') or 'competitiveDialogue' in tender_data.get('procurementMethodType', ''):
Please register or login to post a comment