get TestResultView

This commit is contained in:
cja committed 2025-05-30 13:51:49 +03:00
1 parent 853c63dfdd
commit 177f57db45
1 file changed
+2 -1
+2 -1
View File
@@ -345,7 +345,8 @@ class TestResultView(generics.ListCreateAPIView):
).values_list('answer__id', flat=True)
test_info = self.get_test_info(answer_ids, test_id)
return Response(data={'score': test_info['score'],
'answered_questions_total': test_info['answered_questions_total']})
'answered_questions_total': test_info['answered_questions_total'],
'is_passed': test_info['is_passed']})
@swagger_auto_schema(
operation_description=""" Сохранить результаты тестов