From 07959a996cf9a788e2704e4659e1699006096630 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 29 May 2020 09:51:25 +0800 Subject: [PATCH] moshi --- test_server/examtest/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_server/examtest/views.py b/test_server/examtest/views.py index efd305a..413d10f 100644 --- a/test_server/examtest/views.py +++ b/test_server/examtest/views.py @@ -87,8 +87,8 @@ class WorkScopeViewSet(ModelViewSet): questioncats = workscope.questioncat.exclude(name='辐射小知识更新中').order_by('type') if questioncats.count() == 3: import random - b2 = random.randint(1,9) - b3 = random.randint(1,b2+1) + b2 = random.randint(1,8) + b3 = random.randint(1,9-b2) b1 = 10 - b2 -b3 a1 = 2*b2 + 2*b3 - 2 a2 = 18 - 2*b2