mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12:21 -04:00
Mnemosyne importer now handles float values for due date and interval
This commit is contained in:
parent
bc69f689ab
commit
7efae4d95d
1 changed files with 2 additions and 2 deletions
|
@ -148,11 +148,11 @@ class MnemoCard:
|
|||
reps=self.reps,
|
||||
lapses=self.lapses,
|
||||
interval=self.anki_interval(),
|
||||
due=self.next_rep,
|
||||
due=int(self.next_rep),
|
||||
)
|
||||
|
||||
def anki_interval(self) -> int:
|
||||
return max(1, (self.next_rep - self.last_rep) // 86400)
|
||||
return int(max(1, (self.next_rep - self.last_rep) // 86400))
|
||||
|
||||
|
||||
@dataclass
|
||||
|
|
Loading…
Reference in a new issue