mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 08:22:24 -04:00
refresh fact & cardmodel too
This commit is contained in:
parent
91e89d99e6
commit
e3d6e3fa29
1 changed files with 2 additions and 0 deletions
|
@ -352,6 +352,8 @@ Please do not file a bug report with Anki.<br><br>""")
|
|||
return
|
||||
# force refresh of card then remove from session as we update in pure sql
|
||||
self.deck.s.refresh(self.currentCard)
|
||||
self.deck.s.refresh(self.currentCard.fact)
|
||||
self.deck.s.refresh(self.currentCard.cardModel)
|
||||
self.deck.s.expunge(self.currentCard)
|
||||
# answer
|
||||
self.deck.answerCard(self.currentCard, quality)
|
||||
|
|
Loading…
Reference in a new issue