when shifting cards on reschedule, only shift new cards

This commit is contained in:
Damien Elmes 2012-04-12 00:37:22 +09:00
parent 4f8053b165
commit 5ac1ec2067

View file

@ -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(