diff --git a/rslib/src/scheduler/congrats.rs b/rslib/src/scheduler/congrats.rs index aea2b3cab..364344ddd 100644 --- a/rslib/src/scheduler/congrats.rs +++ b/rslib/src/scheduler/congrats.rs @@ -15,8 +15,7 @@ pub(crate) struct CongratsInfo { impl Collection { pub fn congrats_info(&mut self) -> Result { - let did = self.get_current_deck_id(); - let deck = self.get_deck(did)?.ok_or(AnkiError::NotFound)?; + let deck = self.get_current_deck()?; let today = self.timing_today()?.days_elapsed; let info = self.storage.congrats_info(&deck, today)?; let is_filtered_deck = deck.is_filtered();