Commit 116b4634 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

fix field migrated status.

parent e5878157
Pipeline #32987 passed with stages
in 2 minutes and 30 seconds
...@@ -44,7 +44,7 @@ class WriteTypeReportToDrupal(Resource): ...@@ -44,7 +44,7 @@ class WriteTypeReportToDrupal(Resource):
description: The memobase id of the record set or institution. description: The memobase id of the record set or institution.
status: status:
type: boolean type: boolean
example: True example: true
description: The status description: The status
report: report:
type: string type: string
...@@ -115,7 +115,8 @@ class WriteTypeReportToDrupal(Resource): ...@@ -115,7 +115,8 @@ class WriteTypeReportToDrupal(Resource):
"id": identifier, "id": identifier,
"type": drupal_type, "type": drupal_type,
"attributes": { "attributes": {
"field_migrated": status, "field_migrated": 1 if status == "true" or status is True
or status == "True" else 0,
"field_error": report "field_error": report
} }
} }
......
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