From 17891edb72ce50b0955dcc9ce2ffe9960faa8e52 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 13 Mar 2012 22:28:25 +0900 Subject: [PATCH] card rescheduling needs to bump mod time and usn --- anki/sched.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/anki/sched.py b/anki/sched.py index 21642fe9e..3f7cfed00 100644 --- a/anki/sched.py +++ b/anki/sched.py @@ -1025,9 +1025,11 @@ your short-term review workload will become.""")) mod = intTime() for id in ids: r = random.randint(imin, imax) - d.append(dict(id=id, due=r+t, ivl=max(1, r), mod=mod)) + d.append(dict(id=id, due=r+t, ivl=max(1, r), mod=mod, + usn=self.col.usn())) self.col.db.executemany(""" -update cards set type=2,queue=2,ivl=:ivl,due=:due where id=:id and odid=0""", +update cards set type=2,queue=2,ivl=:ivl,due=:due, +usn=:usn, mod=:mod where id=:id and odid=0""", d) # Repositioning new cards