From 177f57db45116d6e847df7f286278967cec5a624 Mon Sep 17 00:00:00 2001 From: cja Date: Fri, 30 May 2025 13:51:49 +0300 Subject: [PATCH] get TestResultView --- src/back/tests/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/back/tests/views.py b/src/back/tests/views.py index a418931ef..c6fdb79db 100644 --- a/src/back/tests/views.py +++ b/src/back/tests/views.py @@ -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=""" Сохранить результаты тестов