always generate deck queue

This commit is contained in:
Damien Elmes 2008-11-15 18:58:42 +09:00
parent 48dc09db5b
commit 9b25fcc7a2

View file

@ -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,9 +1627,7 @@ alter table decks add column newCount integer not null default 0""")
type="inuse") type="inuse")
else: else:
raise e raise e
# rebuild? deck.rebuildQueue()
if rebuild:
deck.rebuildQueue()
deck.s.commit() deck.s.commit()
return deck return deck
Deck = staticmethod(Deck) Deck = staticmethod(Deck)