From 54b168c4931c24f98675231488a99de12d4dd50c Mon Sep 17 00:00:00 2001 From: yujinni <86652449+yujin37@users.noreply.github.com> Date: Mon, 6 Nov 2023 00:42:07 +0900 Subject: [PATCH] =?UTF-8?q?feat:=2054=EB=B2=88=20=EC=B1=84=EC=A0=90=20?= =?UTF-8?q?=EC=8B=9C=20=EA=B8=80=EC=9E=90=20=EC=88=98=20=EC=B1=84=EC=A0=90?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Model/app.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Model/app.py b/Model/app.py index 2ac9092..7736ee2 100644 --- a/Model/app.py +++ b/Model/app.py @@ -159,7 +159,10 @@ def countCheck(quest_num, answer): if len(answer) > int(max_length): #print('글자 수가 초과되었습니다.') result = str(len(answer))+ '자. 글자 수가 초과되었습니다.' - score = 1 + if quest_num == 53: + score = 1 + else: + score = 2.5 elif len(answer) < int(min_length): #print('글자 수가 부족합니다.') result = str(len(answer))+ '자. 글자 수가 부족합니다.' @@ -167,7 +170,10 @@ def countCheck(quest_num, answer): else: #print('글자 수가 적당합니다') result = str(len(answer))+ '자. 글자 수가 적당합니다' - score = 2 + if quest_num == 53: + score = 2 + else: + score = 5 response = {'글자 수 검사' : result, '점수' : score} return response