This commit is contained in:
Jarrett Ye 2025-07-09 10:22:32 +08:00
parent ee7c620d06
commit 0f7577a999
No known key found for this signature in database
GPG key ID: EBFC55E0C1A352BB

View file

@ -144,8 +144,11 @@ impl Collection {
}
}
let days_elapsed = self.timing_today().unwrap().days_elapsed as i32;
let new_cards =
cards.iter().filter(|c| c.ctype == CardType::New && c.queue != CardQueue::Suspended).count() + req.deck_size as usize;
let new_cards = cards
.iter()
.filter(|c| c.ctype == CardType::New && c.queue != CardQueue::Suspended)
.count()
+ req.deck_size as usize;
let fsrs = FSRS::new(Some(&req.params))?;
let mut converted_cards = cards
.into_iter()