use DECK_STD

This commit is contained in:
Arthur Milchior 2020-01-30 16:44:57 -08:00
parent a473908dca
commit 98e55e26bc
3 changed files with 3 additions and 2 deletions

View File

@ -28,6 +28,7 @@ MEDIA_ADD = 0
MEDIA_REM = 1
# Kind of decks
DECK_STD = 0
# dynamic deck order
DYN_OLDEST = 0

View File

@ -27,7 +27,7 @@ defaultDeck = {
"conf": 1,
"usn": 0,
"desc": "",
"dyn": 0, # anki uses int/bool interchangably here
"dyn": DECK_STD, # anki uses int/bool interchangably here
"collapsed": False,
# added in beta11
"extendNew": 10,

View File

@ -111,7 +111,7 @@ def _upgrade(col, ver) -> None:
if ver < 3:
# new deck properties
for d in col.decks.all():
d["dyn"] = 0
d["dyn"] = DECK_STD
d["collapsed"] = False
col.decks.save(d)
if ver < 4: