mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 08:22:24 -04:00
set factor based on easiness in mnemosyne import
This commit is contained in:
parent
eca41e5ec7
commit
ff2ca5a567
1 changed files with 1 additions and 0 deletions
|
@ -52,6 +52,7 @@ class Mnemosyne10Importer(Importer):
|
|||
card.interval = item.next_rep - item.last_rep
|
||||
secDelta = (item.next_rep - daysPassed) * 86400.0
|
||||
card.due = card.nextTime = time.time() + secDelta
|
||||
card.factor = item.easiness
|
||||
# for some reason mnemosyne starts cards off on 1 instead of 0
|
||||
card.successive = max(
|
||||
(item.acq_reps_since_lapse + item.ret_reps_since_lapse -1), 0)
|
||||
|
|
Loading…
Reference in a new issue