mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 07:07:13 -05:00
reset if there were buried cards, since updatePriorities() doesn't
This commit is contained in:
parent
59df94ff74
commit
35fd3de6fb
1 changed files with 2 additions and 3 deletions
|
|
@ -3750,8 +3750,7 @@ update cards set type = type - 3 where type between 0 and 2 and priority = -3"""
|
|||
"select avg(factor) from cards where type = 1")
|
||||
or Deck.initialFactor)
|
||||
deck.averageFactor = max(deck.averageFactor, Deck.minimumAverage)
|
||||
# rebuild queue if not rebuild already
|
||||
if not ids:
|
||||
# rebuild queue
|
||||
deck.reset()
|
||||
# make sure we haven't accidentally bumped the modification time
|
||||
assert deck.modified == oldMod
|
||||
|
|
|
|||
Loading…
Reference in a new issue