From d34295583005c0bdcb5c2b2e2fef25b6af446613 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 1 Apr 2020 17:36:46 +1000 Subject: [PATCH] remove defaultConf --- pylib/anki/decks.py | 41 +---------------------------------------- 1 file changed, 1 insertion(+), 40 deletions(-) diff --git a/pylib/anki/decks.py b/pylib/anki/decks.py index c2f16ad49..3f21428a4 100644 --- a/pylib/anki/decks.py +++ b/pylib/anki/decks.py @@ -53,45 +53,6 @@ defaultDynamicDeck = { "previewDelay": 10, } -defaultConf = { - "name": _("Default"), - "new": { - "delays": [1, 10], - "ints": [1, 4, 7], # 7 is not currently used - "initialFactor": STARTING_FACTOR, - "separate": True, # unused - "order": NEW_CARDS_DUE, - "perDay": 20, - # may not be set on old decks - "bury": False, - }, - "lapse": { - "delays": [10], - "mult": 0, - "minInt": 1, - "leechFails": 8, - # type 0=suspend, 1=tagonly - "leechAction": LEECH_SUSPEND, - }, - "rev": { - "perDay": 200, - "ease4": 1.3, - "fuzz": 0.05, - "minSpace": 1, # not currently used - "ivlFct": 1, - "maxIvl": 36500, - # may not be set on old decks - "bury": False, - "hardFactor": 1.2, - }, - "maxTaken": 60, - "timer": 0, - "autoplay": True, - "replayq": True, - "mod": 0, - "usn": 0, -} - class DeckManager: decks: Dict[str, Any] @@ -419,7 +380,7 @@ class DeckManager: new["id"] = conf["id"] new["name"] = conf["name"] self.updateConf(new) - # if it was previously randomized, resort + # if it was previously randomized, re-sort if not oldOrder: self.col.sched.resortConf(new)