Commit 3b805fac by Diana Huang

Merge pull request #1123 from MITx/bugfix/victor/open-ended-parsing

Fix for issues in open ended parsing
parents 5cf9982c b4fffc79
...@@ -2061,7 +2061,7 @@ class OpenEndedResponse(LoncapaResponse): ...@@ -2061,7 +2061,7 @@ class OpenEndedResponse(LoncapaResponse):
<div class="{feedback_type}"> <div class="{feedback_type}">
{value} {value}
</div> </div>
""".format(feedback_type, value) """.format(feedback_type=feedback_type, value=value)
# TODO (vshnayder): design and document the details of this format so # TODO (vshnayder): design and document the details of this format so
# that we can do proper escaping here (e.g. are the graders allowed to # that we can do proper escaping here (e.g. are the graders allowed to
...@@ -2153,7 +2153,7 @@ class OpenEndedResponse(LoncapaResponse): ...@@ -2153,7 +2153,7 @@ class OpenEndedResponse(LoncapaResponse):
#Currently ignore msg and only return feedback (which takes the place of msg) #Currently ignore msg and only return feedback (which takes the place of msg)
return ScoreMessage(valid=True, correct=correct, return ScoreMessage(valid=True, correct=correct,
score=score_result['score'], msg=feedback) points=score_result['score'], msg=feedback)
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# TEMPORARY: List of all response subclasses # TEMPORARY: List of all response subclasses
......
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