Commit aa6a46a4 authored by Matthias's avatar Matthias

rearrange fields

parent ed2dbe72
Pipeline #15524 passed with stages
in 5 minutes and 47 seconds
......@@ -59,9 +59,10 @@ class MonitorDrupalJsonApiInstitution(Resource):
drupalResponseAddress =\
requests.get('https://mb-wf1.memobase.unibas.ch/jsonapi/paragraph/' +
'job_mapper_service/' + addressElement['id']).json()['data']
addresses.append(drupalResponseAddress['attributes']['field_address'])
addresses.\
append(drupalResponseAddress['attributes']['field_geographical_coordinates'])
fieldAdressess = drupalResponseAddress['attributes']['field_address']
fieldAdressess['coordinates'] =\
drupalResponseAddress['attributes']['field_geographical_coordinates']['value']
addresses.append(fieldAdressess)
institutionTypes = []
institutionTypesParagraphsUri = drupalResponse['relationships']['field_institution_types']['links']['related']['href'] # noqa: E501
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment