Update memory_state.rs

This commit is contained in:
user1823 2025-06-19 22:02:08 +05:30
parent 4c02d0782a
commit 94ccc3c4c6

View file

@ -105,8 +105,9 @@ impl Collection {
progress.update(true, |state| state.current_cards = idx as u32 + 1)?;
let mut card = self.storage.get_card(card_id)?.or_not_found(card_id)?;
let original = card.clone();
// store decay and desired retention in the card so that add-ons, card info and
// Stats don't need to access the deck config
// store decay and desired retention in the card so that add-ons, card info,
// Stats and browser search/sorts don't need to access the deck config.
// Values stored in the card are not used by the scheduler.
card.desired_retention = desired_retention;
card.decay = decay;
if let (Some(req), Some(item)) = (&req, item) {