判卷bug
This commit is contained in:
parent
692c096f8d
commit
4f1d695e5f
|
|
@ -394,7 +394,7 @@ class ExamRecordViewSet(ListModelMixin, DestroyModelMixin, GenericViewSet):
|
||||||
vdata = serializer.validated_data
|
vdata = serializer.validated_data
|
||||||
questions_ = vdata['questions_']
|
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
|
total_score = 0
|
||||||
try:
|
try:
|
||||||
for index, ad in enumerate(ads):
|
for index, ad in enumerate(ads):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue