From 4f1d695e5ff97ec38fdb2ece92813917184c1deb Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 14 Nov 2022 14:31:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A4=E5=8D=B7bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/apps/exam/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/apps/exam/views.py b/server/apps/exam/views.py index 2a899a4..0058199 100644 --- a/server/apps/exam/views.py +++ b/server/apps/exam/views.py @@ -394,7 +394,7 @@ class ExamRecordViewSet(ListModelMixin, DestroyModelMixin, GenericViewSet): vdata = serializer.validated_data questions_ = vdata['questions_'] # 后端判卷 - ads = AnswerDetail.objects.select_related('question').filter(examrecord=er).order_by('id').values('id', 'question__right', 'total_score', 'question__type') + ads = AnswerDetail.objects.select_related('question').filter(examrecord=er).order_by('id') total_score = 0 try: for index, ad in enumerate(ads):