mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
make sure to suspend all cards of fact, and check due cards again after
This commit is contained in:
parent
3fb0087110
commit
d913d84572
1 changed files with 4 additions and 3 deletions
|
@ -961,11 +961,12 @@ To upgrade an old deck, download Anki 0.9.8.7."""))
|
|||
|
||||
def onSuspend(self):
|
||||
self.currentCard.fact.tags = addTags("Suspended", self.currentCard.fact.tags)
|
||||
self.deck.updatePriority(self.currentCard)
|
||||
self.currentCard.setModified()
|
||||
self.currentCard.fact.setModified()
|
||||
for card in self.currentCard.fact.cards:
|
||||
self.deck.updatePriority(card)
|
||||
self.deck.setModified()
|
||||
self.lastScheduledTime = None
|
||||
self.moveToState("initial")
|
||||
self.reset()
|
||||
|
||||
def onUndoAnswer(self):
|
||||
# quick and dirty undo for now
|
||||
|
|
Loading…
Reference in a new issue