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
Matthias
my-test-project-1
Commits
ce04e3ea
Commit
ce04e3ea
authored
Jun 07, 2021
by
Jonas Waeber
Browse files
Fix record set update
parent
14e37bb8
Pipeline
#32982
passed with stages
in 2 minutes and 23 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
import_api_app/resources/UpdateRecordSet.py
View file @
ce04e3ea
...
...
@@ -69,19 +69,19 @@ class UpdateRecordSet(Resource):
requests
.
get
(
it_drupal_url
,
headers
=
self
.
headers
,
auth
=
self
.
auth
).
json
()[
'data'
]
institutions
=
drupal_record_set_de
[
'relationships'
][
'field_institution'
][
'data'
]
institution_ids
=
UpdateRecordSet
.
get_institution_id_list
(
institutions
)
institution_ids
=
self
.
get_institution_id_list
(
institutions
)
institutions
=
\
drupal_record_set_de
[
'relationships'
][
'field_resp_institution_access'
][
'data'
]
access_institution_ids
=
UpdateRecordSet
.
get_institution_id_list
(
institutions
)
access_institution_ids
=
self
.
get_institution_id_list
(
institutions
)
institutions
=
\
drupal_record_set_de
[
'relationships'
][
'field_resp_institution_master'
][
'data'
]
master_institutions_ids
=
UpdateRecordSet
.
get_institution_id_list
(
institutions
)
master_institutions_ids
=
self
.
get_institution_id_list
(
institutions
)
institutions
=
\
drupal_record_set_de
[
'relationships'
][
'field_resp_institution_original'
][
'data'
]
original_institution_ids
=
UpdateRecordSet
.
get_institution_id_list
(
institutions
)
original_institution_ids
=
self
.
get_institution_id_list
(
institutions
)
metadata_language_codes
=
[]
metadata_languages
=
\
...
...
Write
Preview
Markdown
is supported
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