aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortslil <tslil@posteo.de>2026-07-14 21:29:53 +0100
committertslil <tslil@posteo.de>2026-07-14 21:34:05 +0100
commitab2097f633e63a80024ab191c012ab527a04e54b (patch)
tree3063b93484f5d699bd2ed7b64003213651f68c15 /src
parentfc5789e026473ea82237be847672ecb350e64479 (diff)
prevent empty streaks from entering intuition
Diffstat (limited to 'src')
-rw-r--r--src/trajectory.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/trajectory.rs b/src/trajectory.rs
index 04d5aab..9f442a2 100644
--- a/src/trajectory.rs
+++ b/src/trajectory.rs
@@ -66,11 +66,11 @@ impl Trajectory {
.as_ref()
.is_some_and(|kind| *kind == action);
- let learning = match (learnt_nothing, &action) {
- (false, Action::Skip) => {
+ let learning = match (current_streak.is_empty(), learnt_nothing, &action) {
+ (false, false, Action::Skip) => {
Some(Learning::MoreToSkip(current_streak, last_album.clone()))
}
- (false, Action::More) => {
+ (false, false, Action::More) => {
Some(Learning::SkipToMore(current_streak, last_album.clone()))
}
_ => None,