Commit 1d0e1e1d authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Use correct id.

parent b4384122
......@@ -80,7 +80,7 @@ def get_node_id(memobase_id: str, node_type: str):
response = requests.get(url, headers=headers)
if response.ok:
return response.json()['data'][0]['attributes']['id']
return response.json()['data'][0]['attributes']['drupal_internal__nid']
except KeyError as er:
current_app.logger.error(f"Could not find the key {er} in data: {response.text}.")
raise ImportApiError(f"Could not find the key {er} in data (url={url}): "
Supports Markdown
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