Anki/anki/groups.py
Damien Elmes cc0df00fe5 put cards at end when forgetting; drop support for forgetting leeches
forgetCards() needs to know the highest positioned card, and that requires a
full table scan, so it's not appropriate for part of answerCards()
2011-04-28 09:24:04 +09:00

41 lines
871 B
Python

# -*- coding: utf-8 -*-
# Copyright: Damien Elmes <anki@ichi2.net>
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
import simplejson
from anki.utils import intTime
defaultConf = {
'new': {
'delays': [0.5, 3, 10],
'ints': [1, 7, 4],
'initialFactor': 2500,
},
'lapse': {
'delays': [0.5, 3, 10],
'mult': 0,
'minInt': 1,
'relearn': True,
'leechFails': 16,
# [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,
'fuzz': 0.05,
'minSpace': 1,
},
'maxTaken': 60,
}
defaultData = {
'activeTags': None,
'inactiveTags': None,
}