mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
Skip answer comparison if the user didn't type anything
This commit is contained in:
parent
4922654d8f
commit
6b7d372ca9
1 changed files with 5 additions and 2 deletions
|
@ -610,6 +610,9 @@ class Reviewer:
|
||||||
# munge correct value
|
# munge correct value
|
||||||
expected = self.typeCorrect
|
expected = self.typeCorrect
|
||||||
provided = self.typedAnswer
|
provided = self.typedAnswer
|
||||||
|
if not provided:
|
||||||
|
output = expected
|
||||||
|
else:
|
||||||
# compare with typed answer
|
# compare with typed answer
|
||||||
output = self.mw.col.compare_answer(expected, provided)
|
output = self.mw.col.compare_answer(expected, provided)
|
||||||
# and update the type answer area
|
# and update the type answer area
|
||||||
|
|
Loading…
Reference in a new issue