mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
fix rescheduling of relearn cards (#874)
- need to reset 'odue' - also need to reset 'due' so the new cards don't take on - timestamp positions
This commit is contained in:
parent
1efb03f16d
commit
e06594a303
1 changed files with 1 additions and 1 deletions
|
@ -1264,7 +1264,7 @@ To study outside of the normal schedule, click the Custom Study button below."""
|
||||||
def forgetCards(self, ids):
|
def forgetCards(self, ids):
|
||||||
"Put cards at the end of the new queue."
|
"Put cards at the end of the new queue."
|
||||||
self.col.db.execute(
|
self.col.db.execute(
|
||||||
"update cards set type=0,queue=0,ivl=0,factor=? where id in "+
|
"update cards set type=0,queue=0,ivl=0,odue=0,due=0,factor=? where id in "+
|
||||||
ids2str(ids), 2500)
|
ids2str(ids), 2500)
|
||||||
pmax = self.col.db.scalar(
|
pmax = self.col.db.scalar(
|
||||||
"select max(due) from cards where type=0") or 0
|
"select max(due) from cards where type=0") or 0
|
||||||
|
|
Loading…
Reference in a new issue