mirror of
https://github.com/ankitects/anki.git
synced 2025-11-08 05:37:12 -05:00
if utc offset is 24, set new utc offset and rebuild
This commit is contained in:
parent
46451dbd4d
commit
343b76da05
1 changed files with 8 additions and 0 deletions
|
|
@ -2302,6 +2302,14 @@ class DeckStorage(object):
|
|||
type="inuse")
|
||||
else:
|
||||
raise e
|
||||
if deck.utcOffset == 24:
|
||||
# needs a reset
|
||||
deck.startProgress()
|
||||
DeckStorage._setUTCOffset(deck)
|
||||
DeckStorage._addIndices(deck)
|
||||
for m in deck.models:
|
||||
deck.updateCardsFromModel(m)
|
||||
deck.finishProgress()
|
||||
# fix a bug with current model being unset
|
||||
if not deck.currentModel and deck.models:
|
||||
deck.currentModel = deck.models[0]
|
||||
|
|
|
|||
Loading…
Reference in a new issue