From 5ac1ec20671b3af080d1446d15bb82cfa6e787d8 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 12 Apr 2012 00:37:22 +0900 Subject: [PATCH] when shifting cards on reschedule, only shift new cards --- anki/sched.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/sched.py b/anki/sched.py index d924582ed..a6a003231 100644 --- a/anki/sched.py +++ b/anki/sched.py @@ -1065,7 +1065,7 @@ usn=:usn, mod=:mod where id=:id and odid=0""", shiftby = high - low + 1 self.col.db.execute(""" update cards set mod=?, usn=?, due=due+? where id not in %s -and due >= ?""" % scids, now, self.col.usn(), shiftby, low) +and due >= ? and queue = 0""" % scids, now, self.col.usn(), shiftby, low) # reorder cards d = [] for id, nid in self.col.db.execute(