mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
pull leech threshold on upgrade
This commit is contained in:
parent
0b24e56b40
commit
362c213a6c
1 changed files with 4 additions and 2 deletions
|
@ -311,10 +311,12 @@ insert or replace into col select id, cast(created as int), :t,
|
||||||
# conf['newSpread'] = db.scalar("select newCardSpacing from decks")
|
# conf['newSpread'] = db.scalar("select newCardSpacing from decks")
|
||||||
# conf['timeLim'] = db.scalar("select sessionTimeLimit from decks")
|
# conf['timeLim'] = db.scalar("select sessionTimeLimit from decks")
|
||||||
# add any deck vars and save
|
# add any deck vars and save
|
||||||
dkeys = ("hexCache", "cssCache")
|
|
||||||
for (k, v) in db.execute("select * from deckVars").fetchall():
|
for (k, v) in db.execute("select * from deckVars").fetchall():
|
||||||
if k in dkeys:
|
if k in ("hexCache", "cssCache"):
|
||||||
|
# ignore
|
||||||
pass
|
pass
|
||||||
|
elif k == "leechFails":
|
||||||
|
gc['lapse']['leechFails'] = int(v)
|
||||||
else:
|
else:
|
||||||
conf[k] = v
|
conf[k] = v
|
||||||
# don't use a learning mode for upgrading users
|
# don't use a learning mode for upgrading users
|
||||||
|
|
Loading…
Reference in a new issue