From e93ded1e045063aabf4260eb09aa952b760907a5 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 29 Mar 2011 15:25:42 +0900 Subject: [PATCH] update a few group configs --- anki/groups.py | 6 ++++-- anki/sched.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/anki/groups.py b/anki/groups.py index 4ff2cbc34..93eacaf58 100644 --- a/anki/groups.py +++ b/anki/groups.py @@ -14,16 +14,18 @@ defaultConf = { 'lapse': { 'delays': [0.5, 3, 10], 'mult': 0, + 'minInt': 1, 'relearn': True, 'leechFails': 16, - # one of [suspend], [tagonly] - 'leechAction': ["suspend"], + # [type, data], where type 0=suspend, 1=tagonly + 'leechAction': [0], }, 'cram': { 'delays': [0.5, 3, 10], 'resched': True, 'reset': True, 'mult': 0, + 'minInt': 1, }, 'rev': { 'ease4': 1.3, diff --git a/anki/sched.py b/anki/sched.py index a92befd86..2a1f7e539 100644 --- a/anki/sched.py +++ b/anki/sched.py @@ -532,7 +532,7 @@ queue = 2 %s and due <= :lim order by %s limit %d""" % ( f.tags.append("leech") f.flush() # handle - if conf['leechAction'][0] == "suspend": + if conf['leechAction'][0] == 0: self.suspendCards([card.id]) card.queue = -1 # notify UI