mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 06:07:11 -05:00
strip media before comparing answer
This commit is contained in:
parent
f0b6a22f03
commit
60be7d3a95
1 changed files with 2 additions and 1 deletions
|
|
@ -350,7 +350,8 @@ Please run Tools>Maintenance>Empty Cards""")
|
|||
self.web.eval("_getTypedText();")
|
||||
# munge correct value
|
||||
parser = HTMLParser.HTMLParser()
|
||||
cor = parser.unescape(self.typeCorrect)
|
||||
cor = self.mw.col.media.strip(self.typeCorrect)
|
||||
cor = parser.unescape(cor)
|
||||
given = self.typedAnswer
|
||||
# compare with typed answer
|
||||
res = self.correct(cor, given)
|
||||
|
|
|
|||
Loading…
Reference in a new issue