reset factor when cards reset to new

This commit is contained in:
Damien Elmes 2012-07-04 17:19:28 +09:00
parent 78a209edec
commit f9c438b2bf

View file

@ -1186,7 +1186,8 @@ your short-term review workload will become."""))
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 where id in "+ids2str(ids))
"update cards set type=0,queue=0,ivl=0,factor=? where id in "+
ids2str(ids), 2500)
pmax = self.col.db.scalar(
"select max(due) from cards where type=0") or 0
# takes care of mod + usn