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):
description: The memobase id of the record set or institution.
status:
type: boolean
example: True
example: true
description: The status
report:
type: string
......@@ -115,7 +115,8 @@ class WriteTypeReportToDrupal(Resource):
"id": identifier,
"type": drupal_type,
"attributes": {
"field_migrated": status,
"field_migrated": 1 if status == "true" or status is True
or status == "True" else 0,
"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