Commit 48eae8df authored by Matthias's avatar Matthias
Browse files

remove not existing fields form json

parent 86f66fac
Pipeline #11599 passed with stages
in 5 minutes and 34 seconds
......@@ -49,19 +49,13 @@ class MonitorDrupalJsonApiRecordSet(Resource):
'type': drupalResponse['type'],
'status': drupalResponse['attributes']['status'],
'title': drupalResponse['attributes']['title'],
'field_address': drupalResponse['attributes']['field_address'],
'field_isil': drupalResponse['attributes']['field_isil'],
'field_memobase_id': drupalResponse['attributes']['field_memobase_id'],
'field_email': drupalResponse['attributes']['field_email'],
'field_website': drupalResponse['attributes']['field_website'],
'field_link_archive_catalog':
drupalResponse['attributes']['field_link_archive_catalog'],
'field_text': drupalResponse['attributes']['field_text'],
'field_import_process': drupalResponse['relationships']['field_import_process'],
'field_institution': drupalResponse['relationships']['field_institution']
}
except Exception as ex:
report += 'Exception' + str(ex) + '\n'
report += 'Exception: ' + str(ex) + '\n'
# 2. write info into kafka topic
try:
......
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