mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 14:03:55 -05:00
Update memory_state.rs
This commit is contained in:
parent
4c02d0782a
commit
94ccc3c4c6
1 changed files with 3 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue