mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
fix failed+suspended upgrade
This commit is contained in:
parent
c8b2b5ff87
commit
c6cc874011
1 changed files with 3 additions and 3 deletions
|
@ -684,10 +684,10 @@ and ord = ? limit 1""", m['id'], t['ord']):
|
|||
# and failed cards
|
||||
left = len(col.decks.confForDid(1)['lapse']['delays'])*1001
|
||||
col.db.execute("""
|
||||
update cards set left=?,type=1,queue=1,ivl=1 where type=1 and ivl <= 1""",
|
||||
left)
|
||||
update cards set left=?,type=1,queue=1,ivl=1 where type=1 and ivl <= 1
|
||||
and queue>=0""", left)
|
||||
col.db.execute("""
|
||||
update cards set odue=?,left=?,type=2 where type=1 and ivl > 1""",
|
||||
update cards set odue=?,left=?,type=2 where type=1 and ivl > 1 and queue>=0""",
|
||||
col.sched.today+1, left)
|
||||
# and due cards
|
||||
col.db.execute("""
|
||||
|
|
Loading…
Reference in a new issue