mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 16:02:23 -04:00
Merge pull request #327 from Blauelf/patch-1
Prevent non-integer ivl when importing from Mnemosyne
This commit is contained in:
commit
a609633bb7
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ acq_reps+ret_reps, lapses, card_type_id from cards"""):
|
|||
c.lapses = row[7]
|
||||
# ivl is inferred in mnemosyne
|
||||
next, prev = row[3:5]
|
||||
c.ivl = max(1, (next - prev)/86400)
|
||||
c.ivl = max(1, (next - prev)//86400)
|
||||
# work out how long we've got left
|
||||
rem = int((next - time.time())/86400)
|
||||
c.due = self.col.sched.today+rem
|
||||
|
|
Loading…
Reference in a new issue