must remove from lrn queue before resched as rev (#668)

This commit is contained in:
Damien Elmes 2013-02-20 14:47:30 +09:00
parent c80d1209e6
commit 3de7b34fc6

View File

@ -1279,6 +1279,7 @@ To study outside of the normal schedule, click the Custom Study button below."""
r = random.randint(imin, imax) 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(), fact=2500)) usn=self.col.usn(), fact=2500))
self.removeLrn(ids)
self.col.db.executemany(""" self.col.db.executemany("""
update cards set type=2,queue=2,ivl=:ivl,due=:due, update cards set type=2,queue=2,ivl=:ivl,due=:due,
usn=:usn, mod=:mod, factor=:fact where id=:id and odid=0""", usn=:usn, mod=:mod, factor=:fact where id=:id and odid=0""",