mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 15:17:12 -05:00
fix forgetCards() bug
This commit is contained in:
parent
afbe1a4a64
commit
620f16c876
1 changed files with 2 additions and 1 deletions
|
|
@ -863,7 +863,8 @@ your short-term review workload will become."""))
|
||||||
"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 where id in "+ids2str(ids))
|
"update cards set type=0,queue=0,ivl=0 where id in "+ids2str(ids))
|
||||||
pmax = self.col.db.scalar("select max(due) from cards where type=0")
|
pmax = self.col.db.scalar(
|
||||||
|
"select max(due) from cards where type=0") or 0
|
||||||
# takes care of mod + usn
|
# takes care of mod + usn
|
||||||
self.sortCards(ids, start=pmax+1)
|
self.sortCards(ids, start=pmax+1)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue