rebuild queue after upgrade mostly done

This commit is contained in:
Damien Elmes 2009-06-18 04:25:45 +09:00
parent 093fb4695b
commit b6a50db1c2

View file

@ -2862,7 +2862,6 @@ order by priority desc, due desc""")
prog = True
deck.startProgress()
deck.updateProgress(_("Upgrading Deck..."))
deck.rebuildQueue()
else:
prog = False
deck.path = path
@ -3197,6 +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: