Enhance shorts exam functionality by adding history tracking and updating feedback display in exam scores template
This commit is contained in:
+2
-2
@@ -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)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user