mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Fix/ignore revlogs before Forget entry (#3002)
* Fix/ignore revlogs before Forget entry * Update weights.rs
This commit is contained in:
parent
9ba527afa2
commit
492178c107
1 changed files with 9 additions and 0 deletions
|
@ -201,6 +201,15 @@ pub(crate) fn single_card_revlog_to_items(
|
|||
revlogs_complete = true;
|
||||
} else if last_learn_entry.is_some() {
|
||||
break;
|
||||
// if we find the `Forget` entry before the `Learn` entry, we should
|
||||
// ignore all the entries
|
||||
} else if matches!(
|
||||
(entry.review_kind, entry.ease_factor),
|
||||
(RevlogReviewKind::Manual, 0)
|
||||
) && last_learn_entry.is_none()
|
||||
{
|
||||
revlogs_complete = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if !revlogs_complete {
|
||||
|
|
Loading…
Reference in a new issue