From f963a31d9c4c0b06e6e0ef23e9dd65d57d2cb4c1 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 19 Apr 2012 04:40:43 +0900 Subject: [PATCH] must set factor when cards are rescheduled as a review --- anki/sched.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/anki/sched.py b/anki/sched.py index a47ea2cec..618ed0755 100644 --- a/anki/sched.py +++ b/anki/sched.py @@ -1039,10 +1039,10 @@ your short-term review workload will become.""")) for id in ids: r = random.randint(imin, imax) d.append(dict(id=id, due=r+t, ivl=max(1, r), mod=mod, - usn=self.col.usn())) + usn=self.col.usn(), fact=2500)) self.col.db.executemany(""" update cards set type=2,queue=2,ivl=:ivl,due=:due, -usn=:usn, mod=:mod where id=:id and odid=0""", +usn=:usn, mod=:mod, factor=:fact where id=:id and odid=0""", d) # Repositioning new cards