From 824da308c791b24a2077d3b79483a1c430cb7c7b Mon Sep 17 00:00:00 2001 From: Jarrett Ye Date: Tue, 8 Jul 2025 20:14:31 +0800 Subject: [PATCH] Update rslib/src/scheduler/fsrs/simulator.rs Co-authored-by: user1823 <92206575+user1823@users.noreply.github.com> --- rslib/src/scheduler/fsrs/simulator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rslib/src/scheduler/fsrs/simulator.rs b/rslib/src/scheduler/fsrs/simulator.rs index 4e0907eb3..10d048210 100644 --- a/rslib/src/scheduler/fsrs/simulator.rs +++ b/rslib/src/scheduler/fsrs/simulator.rs @@ -144,7 +144,7 @@ impl Collection { } let days_elapsed = self.timing_today().unwrap().days_elapsed as i32; let new_cards = - cards.iter().filter(|c| c.queue == CardQueue::New).count() + req.deck_size as usize; + cards.iter().filter(|c| c.ctype == CardType::New).count() + req.deck_size as usize; let fsrs = FSRS::new(Some(&req.params))?; let mut converted_cards = cards .into_iter()