mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Some wording tweaks
This commit is contained in:
parent
51d2d61f8b
commit
8c6db5d1b7
2 changed files with 7 additions and 7 deletions
|
@ -290,14 +290,14 @@ pub(crate) fn fsrs_item_for_memory_state(
|
|||
item,
|
||||
starting_state: None,
|
||||
}))
|
||||
} else if let Some(first_non_manual_entry) = output.filtered_revlogs.first() {
|
||||
} else if let Some(first_user_grade) = output.filtered_revlogs.first() {
|
||||
// the revlog has been truncated, but not fully
|
||||
let first_review = FirstReview {
|
||||
interval: first_non_manual_entry.interval.max(1) as f32,
|
||||
ease_factor: if first_non_manual_entry.ease_factor == 0 {
|
||||
interval: first_user_grade.interval.max(1) as f32,
|
||||
ease_factor: if first_user_grade.ease_factor == 0 {
|
||||
2500
|
||||
} else {
|
||||
first_non_manual_entry.ease_factor
|
||||
first_user_grade.ease_factor
|
||||
} as f32
|
||||
/ 1000.0,
|
||||
};
|
||||
|
@ -384,8 +384,8 @@ mod tests {
|
|||
difficulty: 5.7909784,
|
||||
}),
|
||||
);
|
||||
// but if there's only a single revlog entry, we'll fall back on the first
|
||||
// non-manual entry
|
||||
// cards with a single review-type entry also get memory states from revlog
|
||||
// rather than card states
|
||||
let item = fsrs_item_for_memory_state(
|
||||
&fsrs,
|
||||
vec![RevlogEntry {
|
||||
|
|
|
@ -314,7 +314,7 @@ pub(crate) fn reviews_for_fsrs(
|
|||
}
|
||||
} else {
|
||||
// While reviewing, if the first learning step is before the ignore date,
|
||||
// we won't start from the learning step.
|
||||
// we ignore it, and will fall back on SM2 info and the last user grade below.
|
||||
if let Some(idx) = first_of_last_learn_entries {
|
||||
if entries[idx].id.0 < ignore_revlogs_before.0 && idx < entries.len() - 1 {
|
||||
revlogs_complete = false;
|
||||
|
|
Loading…
Reference in a new issue