Commit b248e4a4 by Eric Fischer Committed by GitHub

Merge pull request #1041 from edx/ri/fix-learning-training-assessment-access

EDUCATOR-1263 Fix Learner Training Assessment assess
parents c767f366 5b5eb7ee
......@@ -92,6 +92,12 @@ def update_assessments_format(assessments):
{'text': example['answer']}
]
}
if isinstance(example, dict) and isinstance(example['answer'], list) and example['answer'] > 0 :
example['answer'] = {
'parts': [
{'text': example['answer'][0]}
]
}
return assessments
......
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