use DECK_STD
This commit is contained in:
parent
a473908dca
commit
98e55e26bc
@ -28,6 +28,7 @@ MEDIA_ADD = 0
|
||||
MEDIA_REM = 1
|
||||
|
||||
# Kind of decks
|
||||
DECK_STD = 0
|
||||
|
||||
# dynamic deck order
|
||||
DYN_OLDEST = 0
|
||||
|
@ -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,
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user