mirror of
https://github.com/ankitects/anki.git
synced 2026-01-14 06:23:57 -05:00
Use actual cards for optimal_retention
This commit is contained in:
parent
283c07d057
commit
fa368969f8
1 changed files with 2 additions and 2 deletions
|
|
@ -21,7 +21,7 @@ impl Collection {
|
|||
if req.days_to_simulate == 0 {
|
||||
invalid_input!("no days to simulate")
|
||||
}
|
||||
let (config, _) = self.simulate_request_to_config(&req)?;
|
||||
let (config, cards) = self.simulate_request_to_config(&req)?;
|
||||
Ok(fsrs
|
||||
.optimal_retention(
|
||||
&config,
|
||||
|
|
@ -33,7 +33,7 @@ impl Collection {
|
|||
})
|
||||
.is_ok()
|
||||
},
|
||||
None,
|
||||
Some(cards),
|
||||
)?
|
||||
.clamp(0.7, 0.95))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue