Commit f050e951c6d6ef53b6bb56aff38e43748e409bc1
1 parent
92724a3a
agreement search. getLastQualificationComplaintDataByTenderUaId+getLastAwardComp…
…laintDataByTenderUaId+getLastQualificationComplaintDataByTenderUaId
Showing
2 changed files
with
23 additions
and
5 deletions
... | ... | @@ -1242,6 +1242,7 @@ Resource playtender_agree |
1242 | 1242 | [Documentation] Знайти угоду з uaid рівним tender_uaid. |
1243 | 1243 | |
1244 | 1244 | open agreement search form |
1245 | + go to ${broker_baseurl}/agreement/?query%5B%5D=${agreement_uaid} | |
1245 | 1246 | input to search form and wait results ${agreement_search_form_query_input_locator} ${agreement_uaid} ${agreement_search_form_result_locator_tpl} |
1246 | 1247 | |
1247 | 1248 | Отримати доступ до угоди | ... | ... |
... | ... | @@ -5,6 +5,7 @@ import urllib |
5 | 5 | import urllib3 |
6 | 6 | import string |
7 | 7 | import requests |
8 | +import json | |
8 | 9 | |
9 | 10 | import dateutil.parser |
10 | 11 | from iso8601 import parse_date |
... | ... | @@ -530,7 +531,13 @@ def getLastAwardComplaintDataByTenderUaId(apiBaseUrl, tenderUaId): |
530 | 531 | break |
531 | 532 | if tenderId is None: |
532 | 533 | return {} |
533 | - tenderDataResponse = doGetRequest(apiBaseUrl.strip("/") + "/tenders/" + tenderId + "/awards" + "/complaints", data={}) | |
534 | + tenderDataAward = doGetRequest(apiBaseUrl.strip("/") + "/tenders/" + tenderId + "/awards", data={}) | |
535 | + print("tenderDataAward:") | |
536 | + print(tenderDataAward['json']['data']) | |
537 | + tenderDataAwardId = tenderDataAward['json']['data'][0]['id'] | |
538 | + print("tenderDataAwardId:") | |
539 | + print(tenderDataAwardId) | |
540 | + tenderDataResponse = doGetRequest(apiBaseUrl.strip("/") + "/tenders/" + tenderId + "/awards" + tenderDataAwardId + "/complaints", data={}) | |
534 | 541 | tenderDataJson = tenderDataResponse['json']['data'][0] |
535 | 542 | return tenderDataJson |
536 | 543 | |
... | ... | @@ -549,9 +556,12 @@ def getLastCancellationComplaintDataByTenderUaId(apiBaseUrl, tenderUaId): |
549 | 556 | break |
550 | 557 | if tenderId is None: |
551 | 558 | return {} |
552 | - tenderDataCancellation = doGetRequest(apiBaseUrl.strip("/") + "/tenders/" + tenderId + "/cancellations/", data={}) | |
553 | - tenderDataCancellations= tenderDataCancellation['json']['data'][0] | |
554 | - tenderDataCancellationId= tenderDataCancellations['json']['data']['id'] | |
559 | + tenderDataCancellation = doGetRequest(apiBaseUrl.strip("/") + "/tenders/" + tenderId + "/cancellations", data={}) | |
560 | + print("tenderDataCancellation:") | |
561 | + print(tenderDataCancellation['json']['data']) | |
562 | + tenderDataCancellationId = tenderDataCancellation['json']['data'][0]['id'] | |
563 | + print("tenderDataCancellationId:") | |
564 | + print(tenderDataCancellationId) | |
555 | 565 | tenderDataResponse = doGetRequest(apiBaseUrl.strip("/") + "/tenders/" + tenderId + "/cancellations/" + tenderDataCancellationId + "/complaints", data={}) |
556 | 566 | tenderDataJson = tenderDataResponse['json']['data'][0] |
557 | 567 | return tenderDataJson |
... | ... | @@ -571,7 +581,14 @@ def getLastQualificationComplaintDataByTenderUaId(apiBaseUrl, tenderUaId): |
571 | 581 | break |
572 | 582 | if tenderId is None: |
573 | 583 | return {} |
574 | - tenderDataResponse = doGetRequest(apiBaseUrl.strip("/") + "/tenders/" + tenderId + "/qualifications" + "/complaints", data={}) | |
584 | + tenderDataQualification = doGetRequest(apiBaseUrl.strip("/") + "/tenders/" + tenderId + "/qualifications", data={}) | |
585 | + print("tenderDataQualification:") | |
586 | + print(tenderQualification['json']['data']) | |
587 | + tenderDataCancellationId = tenderDataQualification['json']['data'][0]['id'] | |
588 | + print("tenderDataQualificationId:") | |
589 | + print(tenderDataQualificationId) | |
590 | + | |
591 | + tenderDataResponse = doGetRequest(apiBaseUrl.strip("/") + "/tenders/" + tenderId + "/qualifications" + tenderDataQualificationId + "/complaints", data={}) | |
575 | 592 | tenderDataJson = tenderDataResponse['json']['data'][0] |
576 | 593 | return tenderDataJson |
577 | 594 | ... | ... |
Please
register
or
login
to post a comment