diff --git a/anki/importing/mnemo.py b/anki/importing/mnemo.py index 8c5de5b9b..e94f43d5c 100644 --- a/anki/importing/mnemo.py +++ b/anki/importing/mnemo.py @@ -70,7 +70,7 @@ acq_reps+ret_reps, lapses from cards"""): c.ivl = max(1, (next - prev)/86400) # work out how long we've got left rem = int((next - time.time())/86400) - c.due = max(0, self.col.sched.today+rem) + c.due = self.col.sched.today+rem # get ord m = re.match("\d+\.(\d+)", row[1]) ord = int(m.group(1))-1 diff --git a/anki/importing/supermemo_xml.py b/anki/importing/supermemo_xml.py index d50c60f98..bed819333 100644 --- a/anki/importing/supermemo_xml.py +++ b/anki/importing/supermemo_xml.py @@ -244,7 +244,7 @@ class SupermemoXmlImporter(NoteImporter): card.lapses = int(item.Lapses) card.reps = int(item.Repetitions) + int(item.Lapses) nextDue = tLastrep + (float(item.Interval) * 86400.0) - remDays = max(0, int((nextDue - time.time())/86400)) + remDays = int((nextDue - time.time())/86400) card.due = self.col.sched.today+remDays card.factor = int(float(item.AFactor.replace(',','.'))*1000) note.cards[0] = card