mirror of
https://github.com/ankitects/anki.git
synced 2025-11-07 05:07:10 -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();
|
let deckconfig_id = deck.config_id().unwrap();
|
||||||
// reschedule it
|
// reschedule it
|
||||||
let original_interval = card.interval;
|
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.
|
// days_elapsed is used for performance reasons.
|
||||||
let greater_than_last = |interval: u32| {
|
let greater_than_last = |interval: u32| {
|
||||||
if interval > days_elapsed {
|
if interval > days_elapsed as u32 {
|
||||||
days_elapsed + 1
|
days_elapsed as u32 + 1
|
||||||
} else {
|
} else {
|
||||||
0
|
0
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue