cards must be removed from filtered decks before they're buried

if not, removeLrn() resets due=odue and odue=0, leading to an invalid
delay calculation when they're later reviewed in the filtered deck

to fix this we'll need to make the same changes required to support
learning cards retaining their state when being emptied from a
filtered deck
This commit is contained in:
Damien Elmes 2013-11-13 09:06:48 +09:00
parent d7e452de1f
commit 1df385db12

View file

@ -1279,6 +1279,7 @@ To study outside of the normal schedule, click the Custom Study button below."""
def buryCards(self, cids): def buryCards(self, cids):
self.col.log(cids) self.col.log(cids)
self.remFromDyn(cids)
self.removeLrn(cids) self.removeLrn(cids)
self.col.db.execute(""" self.col.db.execute("""
update cards set queue=-2,mod=?,usn=? where id in """+ids2str(cids), update cards set queue=-2,mod=?,usn=? where id in """+ids2str(cids),