Enhance shorts exam functionality by adding history tracking and updating feedback display in exam scores template

This commit is contained in:
Ross
2025-09-08 10:26:16 +01:00
parent 5270d5cd36
commit 7ff5d1d37e
3 changed files with 18 additions and 8 deletions
+2 -2
View File
@@ -2296,7 +2296,7 @@ class ExamViews(View, LoginRequiredMixin):
ans = user_answer.get_answer()
answer_score = user_answer.get_answer_score()
if self.app_name == "longs":
if self.app_name in ("longs", "shorts"):
feedback = user_answer.candidate_feedback
match self.app_name:
@@ -2336,7 +2336,7 @@ class ExamViews(View, LoginRequiredMixin):
answers.append(ans)
answers_marks.append(answer_score)
if self.app_name == "longs":
if self.app_name in ("longs", "shorts"):
answers_and_marks.append(
(ans, answer_score, correct_answer, feedback)
)