Skip to content

Commit

Permalink
fix: Fixed a bug that sometimes occurs.
Browse files Browse the repository at this point in the history
Fixed a type error that could occur due to a mistake,
when parsing approved fill-in-the-blank questions.
  • Loading branch information
chettoy committed Oct 21, 2022
1 parent 5c5ea69 commit 4789ad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fxxkstar.py
Original file line number Diff line number Diff line change
Expand Up @@ -1932,7 +1932,7 @@ class MarkResultItem:
correct_answers.append(OptionItem(
index_list[i], result.correct_answer))
elif result.is_correct == True:
correct_answers.append(result)
correct_answers.append(option_item)
if len(current_answers) > 0:
question.selected = current_answers
if len(correct_answers) > 0:
Expand Down

0 comments on commit 4789ad9

Please sign in to comment.