Commit 15f9d438 authored by Matthias's avatar Matthias
Browse files

add title and description for fr and it

parent 915bc87f
Pipeline #12242 passed with stages
in 7 minutes and 3 seconds
......@@ -45,17 +45,23 @@ class MonitorDrupalJsonApiRecordSet(Resource):
drupalRecordSet =\
requests.get('https://mb-wf1.memobase.unibas.ch/jsonapi/node/' +
'institution/' + recordSetId).json()['data']
# drupalImportProcess =\
# requests.get('https://mb-wf1.memobase.unibas.ch//jsonapi/node/' +
# 'import_process?filter[field_record_set.id][value]=' +
# recordSetId).json()['data']
drupalRecordSet_fr =\
requests.get('https://mb-wf1.memobase.unibas.ch/fr/jsonapi/node/' +
'institution/' + recordSetId).json()['data']
drupalRecordSet_it =\
requests.get('https://mb-wf1.memobase.unibas.ch/it/jsonapi/node/' +
'institution/' + recordSetId).json()['data']
topicValue = {
'type': drupalRecordSet['type'],
'status': drupalRecordSet['attributes']['status'],
'title': drupalRecordSet['attributes']['title'],
'title_fr': drupalRecordSet_fr['attributes']['title'],
'title_it': drupalRecordSet_it['attributes']['title'],
'field_memobase_id': drupalRecordSet['attributes']['field_memobase_id'],
'field_text': drupalRecordSet['attributes']['field_text'],
'field_text_fr': drupalRecordSet_fr['attributes']['field_text'],
'field_text_it': drupalRecordSet_it['attributes']['field_text'],
'field_import_process': drupalRecordSet['relationships']['field_import_process'],
'field_institution': drupalRecordSet['relationships']['field_institution']
}
......
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