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"]:
|
||||
indexname = f'{entity}_{kwargs["params"]["SUFFIX"]}'
|
||||
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"}
|
||||
|
||||
while True:
|
||||
reply = session.get(url=baseurl, params=params)
|
||||
reply = session.get(url=callurl, params=params)
|
||||
reply.raise_for_status()
|
||||
content = reply.json()
|
||||
if 'results' not in content:
|
||||
|
|
Loading…
Reference in New Issue