mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -04:00
Set min interval of easy to Good + 1
This commit is contained in:
parent
0e3a0298fc
commit
da257eead2
1 changed files with 5 additions and 3 deletions
|
@ -134,14 +134,16 @@ impl RelearnState {
|
|||
|
||||
fn answer_easy(self, ctx: &StateContext) -> ReviewState {
|
||||
let scheduled_days = if let Some(states) = &ctx.fsrs_next_states {
|
||||
let (minimum, maximum) = ctx.min_and_max_review_intervals(1);
|
||||
let (mut minimum, maximum) = ctx.min_and_max_review_intervals(1);
|
||||
let good = ctx.with_review_fuzz(states.good.interval as f32, minimum, maximum);
|
||||
minimum = good + 1;
|
||||
let interval = states.easy.interval;
|
||||
ctx.with_review_fuzz(interval as f32, minimum, maximum)
|
||||
} else {
|
||||
self.review.scheduled_days
|
||||
self.review.scheduled_days + 1
|
||||
};
|
||||
ReviewState {
|
||||
scheduled_days: scheduled_days + 1,
|
||||
scheduled_days,
|
||||
elapsed_days: 0,
|
||||
memory_state: ctx.fsrs_next_states.as_ref().map(|s| s.easy.memory.into()),
|
||||
..self.review
|
||||
|
|
Loading…
Reference in a new issue