mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 06:07:11 -05:00
always generate deck queue
This commit is contained in:
parent
48dc09db5b
commit
9b25fcc7a2
1 changed files with 2 additions and 4 deletions
|
|
@ -1544,7 +1544,7 @@ class DeckStorage(object):
|
|||
return path
|
||||
newDeckPath = staticmethod(newDeckPath)
|
||||
|
||||
def Deck(path=None, rebuild=True, backup=True, lock=True):
|
||||
def Deck(path=None, backup=True, lock=True):
|
||||
"Create a new deck or attach to an existing one."
|
||||
# generate a temp name if necessary
|
||||
if path is None:
|
||||
|
|
@ -1627,9 +1627,7 @@ alter table decks add column newCount integer not null default 0""")
|
|||
type="inuse")
|
||||
else:
|
||||
raise e
|
||||
# rebuild?
|
||||
if rebuild:
|
||||
deck.rebuildQueue()
|
||||
deck.rebuildQueue()
|
||||
deck.s.commit()
|
||||
return deck
|
||||
Deck = staticmethod(Deck)
|
||||
|
|
|
|||
Loading…
Reference in a new issue