mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
add bury support
This commit is contained in:
parent
1d89be0a1e
commit
ecc99780e4
1 changed files with 9 additions and 0 deletions
|
@ -1159,6 +1159,15 @@ where type in (3,4,5) and id in %s""" %
|
|||
self.reset()
|
||||
self.finishProgress()
|
||||
|
||||
def buryFact(self, fact):
|
||||
for card in fact.cards:
|
||||
if card.priority > 0:
|
||||
card.priority = -2
|
||||
card.type += 3
|
||||
card.isDue = 0
|
||||
self.flushMod()
|
||||
self.reset()
|
||||
|
||||
# Card/fact counts - all in deck, not just due
|
||||
##########################################################################
|
||||
|
||||
|
|
Loading…
Reference in a new issue