mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
Update memory_state.rs
This commit is contained in:
parent
4ec8faab11
commit
d984551da4
1 changed files with 2 additions and 2 deletions
|
|
@ -111,8 +111,8 @@ impl Collection {
|
||||||
// Unlike memory states, scheduler doesn't use decay and dr stored in the card.
|
// Unlike memory states, scheduler doesn't use decay and dr stored in the card.
|
||||||
card.desired_retention = desired_retention;
|
card.desired_retention = desired_retention;
|
||||||
card.decay = decay;
|
card.decay = decay;
|
||||||
if let Some(item) = &item {
|
if let Some(item) = item {
|
||||||
card.set_memory_state(&fsrs, Some(item.clone()), historical_retention.unwrap())?;
|
card.set_memory_state(&fsrs, Some(item), historical_retention.unwrap())?;
|
||||||
// if rescheduling
|
// if rescheduling
|
||||||
if let Some(reviews) = &last_revlog_info {
|
if let Some(reviews) = &last_revlog_info {
|
||||||
// and we have a last review time for the card
|
// and we have a last review time for the card
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue