add bury support

This commit is contained in:
Damien Elmes 2010-10-24 13:06:16 +09:00
parent 1d89be0a1e
commit ecc99780e4

View file

@ -1159,6 +1159,15 @@ where type in (3,4,5) and id in %s""" %
self.reset() self.reset()
self.finishProgress() 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 # Card/fact counts - all in deck, not just due
########################################################################## ##########################################################################