mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
fix invalid cards when moving from v2->v1 sched
type needs to be reset from 3->2 when relearning cards removed from learning https://anki.tenderapp.com/discussions/beta-testing/1210-scheduling-error
This commit is contained in:
parent
be89c7a779
commit
1ac83b7998
1 changed files with 1 additions and 1 deletions
|
@ -1587,7 +1587,7 @@ due = odue, odue = 0, odid = 0, usn = ? where odid != 0""",
|
|||
# remove review cards from relearning
|
||||
self.col.db.execute("""
|
||||
update cards set
|
||||
due = odue, queue = 2, mod = %d, usn = %d, odue = 0
|
||||
due = odue, queue = 2, type = 2, mod = %d, usn = %d, odue = 0
|
||||
where queue in (1,3) and type in (2, 3)
|
||||
""" % (intTime(), self.col.usn()))
|
||||
# remove new cards from learning
|
||||
|
|
Loading…
Reference in a new issue