Skip to content

Commit

Permalink
[feat/#505] ✏️ Typo: log 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
noooey committed May 29, 2024
1 parent 3f01e8b commit 3b1609b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion model/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ async def generate_question(idx, i):

# 5문제가 생성되었거나 마지막 문제인 경우 DynamoDB에 업데이트
if idx % 5 == 0 or idx == generate_request.num_of_quiz:
log('info', f'[app.py > quiz] cur idx: {idx} - quiz batch is ready to push. {questions}')
log('info', f'[app.py > quiz] cur idx: {idx} - quiz batch is ready to push. idx: {idx}')

retries = 0
while retries < QUIZ_UPDATE_RETRY:
Expand Down
1 change: 0 additions & 1 deletion model/app/data/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ def get_type(self, text):
return "OX퀴즈"

def adjust_result(self, type, option_list, correct):
log("warning", f"[generator.py > quiz] set type({type}), options({option_list}), correct({correct}) ")
if type == "단답형" or type == None:
if (correct.strip().lower() in NO_LIST) or (correct.strip().lower() in YES_LIST):
type = "OX퀴즈"
Expand Down

0 comments on commit 3b1609b

Please sign in to comment.