fix: 模拟考试完善出卷规则未完成
This commit is contained in:
parent
bd885a935f
commit
53670db67b
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue