make sure to suspend all cards of fact, and check due cards again after

This commit is contained in:
Damien Elmes 2008-11-29 14:47:56 +09:00
parent 3fb0087110
commit d913d84572

View file

@ -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