Skip to content

Commit

Permalink
hotfix : modify generate quiz error form
Browse files Browse the repository at this point in the history
  • Loading branch information
Son-GyeongSik committed Oct 31, 2023
1 parent 2d8df8c commit 4a14bcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/quiz/quizv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ def _reformat_quiz(quiz_json: str):
quiz_json = json.loads(quiz_json)
except json.decoder.JSONDecodeError as e:
print("JSON Decode Error : retry generate quiz")
return [{'quiz_type': 2, 'quiz_question': '퀴즈 생성중 오류가 발생했습니다. ㅠㅠ', 'quiz_select_options': [], 'answer': ''}], False
return [{'quiz_type': 1, 'quiz_question': 'ERROR!', 'quiz_select_options': ['퀴즈 생성중 오류가 발생했습니다. ㅠㅠ'], 'answer': 1}], False

return quiz_json, True

0 comments on commit 4a14bcc

Please sign in to comment.