Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
Import Process
Import API
Commits
aa6a46a4
Commit
aa6a46a4
authored
Oct 13, 2020
by
Matthias
Browse files
rearrange fields
parent
ed2dbe72
Pipeline
#15524
passed with stages
in 5 minutes and 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
import_api_app/resources/MonitorDrupalJsonApiInstitution.py
View file @
aa6a46a4
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment