mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
Fix
This commit is contained in:
parent
aa351f86d9
commit
dd78285785
1 changed files with 3 additions and 3 deletions
|
|
@ -136,11 +136,11 @@ impl Collection {
|
|||
let deckconfig_id = deck.config_id().unwrap();
|
||||
// reschedule it
|
||||
let original_interval = card.interval;
|
||||
// This should ideally use lastIvl from the latest revlog entry.
|
||||
// This should ideally use lastIvl from latest revlog.
|
||||
// days_elapsed is used for performance reasons.
|
||||
let greater_than_last = |interval: u32| {
|
||||
if interval > days_elapsed {
|
||||
days_elapsed + 1
|
||||
if interval > days_elapsed as u32 {
|
||||
days_elapsed as u32 + 1
|
||||
} else {
|
||||
0
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue