mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 14:03:55 -05:00
don't affect SM-2
This commit is contained in:
parent
1f51591c53
commit
da9e0d5393
1 changed files with 2 additions and 2 deletions
|
|
@ -36,9 +36,9 @@ impl Card {
|
|||
let new_interval = if fsrs_enabled {
|
||||
self.interval.saturating_add_signed(new_due - self.due)
|
||||
} else if force_reset || !matches!(self.ctype, CardType::Review | CardType::Relearn) {
|
||||
days_from_today
|
||||
days_from_today.max(1)
|
||||
} else {
|
||||
self.interval
|
||||
self.interval.max(1)
|
||||
};
|
||||
let ease_factor = (ease_factor * 1000.0).round() as u16;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue