mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
make sure reps >= 0 in mnemosyne
This commit is contained in:
parent
ff2ca5a567
commit
39810aa3d0
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ class Mnemosyne10Importer(Importer):
|
|||
# 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)
|
||||
card.yesCount = (item.acq_reps + item.ret_reps) - 1
|
||||
card.yesCount = max((item.acq_reps + item.ret_reps) - 1, 0)
|
||||
card.noCount = item.lapses
|
||||
card.reps = card.yesCount + card.noCount
|
||||
if item.cat.name != u"<default>":
|
||||
|
|
Loading…
Reference in a new issue