mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
reset factor when cards reset to new
This commit is contained in:
parent
78a209edec
commit
f9c438b2bf
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue