mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12:21 -04:00
allow due to be negative so we can reflect overdue cards
This commit is contained in:
parent
d1e04b908d
commit
c92ab5dd19
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue