mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
use libanki's bury support
This commit is contained in:
parent
5a71cd84a3
commit
c03d634012
1 changed files with 1 additions and 5 deletions
|
@ -1857,11 +1857,7 @@ learnt today")
|
||||||
def onBuryFact(self):
|
def onBuryFact(self):
|
||||||
undo = _("Bury")
|
undo = _("Bury")
|
||||||
self.deck.setUndoStart(undo)
|
self.deck.setUndoStart(undo)
|
||||||
for card in self.currentCard.fact.cards:
|
self.deck.buryFact(self.currentCard.fact)
|
||||||
if card.priority > 0:
|
|
||||||
card.priority = -2
|
|
||||||
card.isDue = 0
|
|
||||||
self.deck.flushMod()
|
|
||||||
self.reset()
|
self.reset()
|
||||||
self.deck.setUndoEnd(undo)
|
self.deck.setUndoEnd(undo)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue