From 162ccdcc03488768f174dcb1a408cc40def95560 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 23 Aug 2012 19:44:25 +0900 Subject: [PATCH] bury shouldn't touch suspended siblings --- anki/sched.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/anki/sched.py b/anki/sched.py index 02644a4a1..070a0c5ef 100644 --- a/anki/sched.py +++ b/anki/sched.py @@ -1184,10 +1184,11 @@ your short-term review workload will become.""")) def buryNote(self, nid): "Bury all cards for note until next session." self.col.setDirty() - cids = self.col.db.list("select id from cards where nid = ?", nid) + cids = self.col.db.list( + "select id from cards where nid = ? and queue >= 0", nid) self.remFromDyn(cids) self.removeFailed(cids) - self.col.db.execute("update cards set queue = -2 where nid = ?", nid) + self.col.db.execute("update cards set queue = -2 where id in "+ids2str(cids)) # Resetting ##########################################################################