From 53670db67b5f1a43b9bd5dc86ffa5fbbac645d69 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 14 Apr 2023 17:48:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A8=A1=E6=8B=9F=E8=80=83=E8=AF=95?= =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=87=BA=E5=8D=B7=E8=A7=84=E5=88=99=E6=9C=AA?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test_server/examtest/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)