Simplify wrong answer percentage display
This commit is contained in:
@@ -84,7 +84,9 @@ public class QuestionsController : ControllerBase
|
||||
return Ok(new FirstQuestionAttemptResponse
|
||||
{
|
||||
QuestionExternalId = question.ExternalId,
|
||||
ChoiceSelectionPercentages = await _attempts.GetPercentagesForQuestionAsync(question.ExternalId)
|
||||
ChoiceSelectionPercentages = QuestionResponse.BuildChoiceSelectionPercentages(
|
||||
question,
|
||||
await _attempts.GetPercentagesForQuestionAsync(question.ExternalId))
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user