Commit aa6a46a4 authored by Matthias's avatar Matthias
Browse files

rearrange fields

parent ed2dbe72
Pipeline #15524 passed with stages
in 5 minutes and 47 seconds
...@@ -59,9 +59,10 @@ class MonitorDrupalJsonApiInstitution(Resource): ...@@ -59,9 +59,10 @@ class MonitorDrupalJsonApiInstitution(Resource):
drupalResponseAddress =\ drupalResponseAddress =\
requests.get('https://mb-wf1.memobase.unibas.ch/jsonapi/paragraph/' + requests.get('https://mb-wf1.memobase.unibas.ch/jsonapi/paragraph/' +
'job_mapper_service/' + addressElement['id']).json()['data'] 'job_mapper_service/' + addressElement['id']).json()['data']
addresses.append(drupalResponseAddress['attributes']['field_address']) fieldAdressess = drupalResponseAddress['attributes']['field_address']
addresses.\ fieldAdressess['coordinates'] =\
append(drupalResponseAddress['attributes']['field_geographical_coordinates']) drupalResponseAddress['attributes']['field_geographical_coordinates']['value']
addresses.append(fieldAdressess)
institutionTypes = [] institutionTypes = []
institutionTypesParagraphsUri = drupalResponse['relationships']['field_institution_types']['links']['related']['href'] # noqa: E501 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