mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
Format
This commit is contained in:
parent
55f3c8cd95
commit
937bb3765b
1 changed files with 2 additions and 1 deletions
|
|
@ -105,7 +105,8 @@ impl Collection {
|
||||||
progress.update(true, |state| state.current_cards = idx as u32 + 1)?;
|
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 mut card = self.storage.get_card(card_id)?.or_not_found(card_id)?;
|
||||||
let original = card.clone();
|
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 and
|
||||||
|
// Stats don't need to access the deck config
|
||||||
card.desired_retention = desired_retention;
|
card.desired_retention = desired_retention;
|
||||||
card.decay = decay;
|
card.decay = decay;
|
||||||
if let (Some(req), Some(item)) = (&req, item) {
|
if let (Some(req), Some(item)) = (&req, item) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue