From 94c7c3282bb2b4fe95751f3417894d9fbc88e5a1 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 2 Aug 2021 14:59:05 +1000 Subject: [PATCH] fix learning cutoff not updating during review --- rslib/src/scheduler/queue/learning.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rslib/src/scheduler/queue/learning.rs b/rslib/src/scheduler/queue/learning.rs index b2d6ba86d..0b30a5ac4 100644 --- a/rslib/src/scheduler/queue/learning.rs +++ b/rslib/src/scheduler/queue/learning.rs @@ -40,7 +40,7 @@ impl CardQueues { learning_count: self.counts.learning, learning_cutoff: self.current_learning_cutoff, }; - let cutoff = self.current_learning_cutoff; + self.current_learning_cutoff = TimestampSecs::now(); let ahead_cutoff = self.current_learn_ahead_cutoff(); let new_learning_cards = self .intraday_learning @@ -49,7 +49,6 @@ impl CardQueues { .take_while(|e| e.due <= ahead_cutoff) .count(); self.counts.learning += new_learning_cards; - self.current_learning_cutoff = cutoff; Box::new(change) }