diff --git a/test_server/examtest/views.py b/test_server/examtest/views.py index df16932..c5eef77 100644 --- a/test_server/examtest/views.py +++ b/test_server/examtest/views.py @@ -260,7 +260,7 @@ class WorkScopeViewSet(ModelViewSet): ret['panduan_score'] = workscope.rule.panduan_score question_queryset = Question.objects.none() questioncats = workscope.questioncat.exclude(name='辐射小知识更新中').order_by('type', 'create_time') - if questioncats.count() == 3: + if questioncats.count() == 3 and questioncats.filter(name='电离辐射法律法规').exists(): import random b2 = random.randint(1,8) b3 = random.randint(1,9-b2)