mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
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:
parent
d7e452de1f
commit
1df385db12
1 changed files with 1 additions and 0 deletions
|
@ -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),
|
||||||
|
|
Loading…
Reference in a new issue