From 1df385db12fbba9e748bd1815345d0650b10a023 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 13 Nov 2013 09:06:48 +0900 Subject: [PATCH] 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 --- anki/sched.py | 1 + 1 file changed, 1 insertion(+) diff --git a/anki/sched.py b/anki/sched.py index 9c05df4e9..6ebf71fe7 100644 --- a/anki/sched.py +++ b/anki/sched.py @@ -1279,6 +1279,7 @@ To study outside of the normal schedule, click the Custom Study button below.""" def buryCards(self, cids): self.col.log(cids) + self.remFromDyn(cids) self.removeLrn(cids) self.col.db.execute(""" update cards set queue=-2,mod=?,usn=? where id in """+ids2str(cids),