Skip to content

Commit

Permalink
feat : regulization answer overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Son-GyeongSik committed Nov 24, 2023
1 parent ab0b275 commit dd793b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/quiz/quizv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ async def generate_quizzes(summaries: list):
if quiz['answer'] == 0:
quiz['answer'] = 1

if len(quiz['quiz_select_options']) < quiz['answer']:
quiz['answer'] = len(quiz['quiz_select_options'])

return quiz_list


Expand Down

0 comments on commit dd793b3

Please sign in to comment.