Commit c7f842daad025e4a9a9ed9f1ac924479329109da
1 parent
987a5789
отримати internal id по UAid helper added
Showing
1 changed file
with
7 additions
and
2 deletions
1 | 1 | from openprocurement_client.client import Client |
2 | +import sys | |
2 | 3 | |
3 | - | |
4 | -def prepare_api_wrapper(key='', host_url="https://api-sandbox.openprocurement.org", api_version='0.7' ): | |
4 | +def prepare_api_wrapper(key='', host_url="https://api-sandbox.openprocurement.org", api_version='0.8' ): | |
5 | 5 | return Client(key, host_url, api_version ) |
6 | + | |
7 | +def get_internal_id(get_tenders_function, date): | |
8 | + result = get_tenders_function({"offset": date, "opt_fields": 'tenderID', }) | |
9 | + #import pdb; pdb.Pdb(stdout=sys.__stdout__).set_trace() | |
10 | + return result | ... | ... |
Please
register
or
login
to post a comment