mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -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
|
return path
|
||||||
newDeckPath = staticmethod(newDeckPath)
|
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."
|
"Create a new deck or attach to an existing one."
|
||||||
# generate a temp name if necessary
|
# generate a temp name if necessary
|
||||||
if path is None:
|
if path is None:
|
||||||
|
|
@ -1627,8 +1627,6 @@ alter table decks add column newCount integer not null default 0""")
|
||||||
type="inuse")
|
type="inuse")
|
||||||
else:
|
else:
|
||||||
raise e
|
raise e
|
||||||
# rebuild?
|
|
||||||
if rebuild:
|
|
||||||
deck.rebuildQueue()
|
deck.rebuildQueue()
|
||||||
deck.s.commit()
|
deck.s.commit()
|
||||||
return deck
|
return deck
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue