mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
card rescheduling needs to bump mod time and usn
This commit is contained in:
parent
056e146696
commit
17891edb72
1 changed files with 4 additions and 2 deletions
|
@ -1025,9 +1025,11 @@ your short-term review workload will become."""))
|
||||||
mod = intTime()
|
mod = intTime()
|
||||||
for id in ids:
|
for id in ids:
|
||||||
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()))
|
||||||
self.col.db.executemany("""
|
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)
|
d)
|
||||||
|
|
||||||
# Repositioning new cards
|
# Repositioning new cards
|
||||||
|
|
Loading…
Reference in a new issue