From 1529c6ae5e1cef350870ec804b55099889230912 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 13 Mar 2012 22:33:01 +0900 Subject: [PATCH] higher default leech threshold --- anki/upgrade.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/anki/upgrade.py b/anki/upgrade.py index acde650eb..0523d862f 100644 --- a/anki/upgrade.py +++ b/anki/upgrade.py @@ -695,6 +695,11 @@ update cards set due = cast( (case when due < :stamp then 0 else 1 end) + ((due-:stamp)/86400) as int)+:today where type = 2 """, stamp=col.sched.dayCutoff, today=col.sched.today) + # lapses were counted differently in 1.0, so we should have a higher + # default lapse threshold + for d in col.decks.allConf(): + d['lapse']['leechFails'] = 16 + col.decks.save(d) # possibly re-randomize conf = col.decks.allConf()[0] if not conf['new']['order']: