mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
strip suspended upgrade code, users will have to do it manually
This commit is contained in:
parent
b079df2a13
commit
a1981cf220
1 changed files with 1 additions and 12 deletions
13
anki/deck.py
13
anki/deck.py
|
@ -3196,18 +3196,7 @@ nextFactor, reps, thinkingTime, yesCount, noCount from reviewHistory""")
|
|||
deck.version = 37
|
||||
deck.s.commit()
|
||||
if deck.version < 38:
|
||||
deck.rebuildQueue()
|
||||
# manually suspend all suspended cards
|
||||
ids = deck.findCards("tag:suspended")
|
||||
if ids:
|
||||
deck.suspendCards(ids)
|
||||
deck.deleteTags(deck.s.column0(
|
||||
"select distinct factId from cards "
|
||||
"where id in %s" % ids2str(ids)),
|
||||
"Suspended")
|
||||
# suspended tag obsolete
|
||||
deck.suspended = re.sub(u" ?Suspended ?", u"", deck.suspended)
|
||||
deck.updateTagPriorities()
|
||||
# don't automatically upgrade suspended
|
||||
deck.version = 38
|
||||
deck.s.commit()
|
||||
# executing a pragma here is very slow on large decks, so we store
|
||||
|
|
Loading…
Reference in a new issue