initial stage
This commit is contained in:
parent
227ec44a21
commit
eccf5d396c
|
@ -94,11 +94,11 @@ def import_catalogue_entities():
|
||||||
for entity in kwargs["params"]["ENTITIES"]:
|
for entity in kwargs["params"]["ENTITIES"]:
|
||||||
indexname = f'{entity}_{kwargs["params"]["SUFFIX"]}'
|
indexname = f'{entity}_{kwargs["params"]["SUFFIX"]}'
|
||||||
baseurl = "http://vereniki.athenarc.gr:8080/eic-registry"
|
baseurl = "http://vereniki.athenarc.gr:8080/eic-registry"
|
||||||
callurl = f"{baseurl}/{entity}?draft=false&active=true&suspended=false"
|
callurl = f"{baseurl}/{entity}
|
||||||
params = {"draft": "false", "active": "true", "suspended": "false"}
|
params = {"draft": "false", "active": "true", "suspended": "false"}
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
reply = session.get(url=baseurl, params=params)
|
reply = session.get(url=callurl, params=params)
|
||||||
reply.raise_for_status()
|
reply.raise_for_status()
|
||||||
content = reply.json()
|
content = reply.json()
|
||||||
if 'results' not in content:
|
if 'results' not in content:
|
||||||
|
|
Loading…
Reference in New Issue