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:
Damien Elmes 2013-05-16 16:36:37 +09:00
parent 1efb03f16d
commit e06594a303

View file

@ -1264,7 +1264,7 @@ To study outside of the normal schedule, click the Custom Study button below."""
def forgetCards(self, ids):
"Put cards at the end of the new queue."
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)
pmax = self.col.db.scalar(
"select max(due) from cards where type=0") or 0