Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthias
my-test-project-1
Commits
116b4634
Commit
116b4634
authored
Jun 09, 2021
by
Jonas Waeber
Browse files
fix field migrated status.
parent
e5878157
Pipeline
#32987
passed with stages
in 2 minutes and 30 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
import_api_app/resources/WriteTypeReportToDrupal.py
View file @
116b4634
...
...
@@ -44,7 +44,7 @@ class WriteTypeReportToDrupal(Resource):
description: The memobase id of the record set or institution.
status:
type: boolean
example:
T
rue
example:
t
rue
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
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment