Simplify wrong answer percentage display

This commit is contained in:
hz
2026-07-11 01:46:37 -05:00
parent 8a86734a0b
commit bdd32c9dac
3 changed files with 19 additions and 7 deletions
@@ -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))
});
}