mirror of
https://github.com/ankitects/anki.git
synced 2026-01-07 02:53:54 -05:00
Allow 10% as minimum Desired Retention
This commit is contained in:
parent
2d4de33cf3
commit
c2948f620b
4 changed files with 4 additions and 4 deletions
|
|
@ -296,7 +296,7 @@ pub(crate) fn ensure_deck_config_values_valid(config: &mut DeckConfigInner) {
|
||||||
ensure_f32_valid(
|
ensure_f32_valid(
|
||||||
&mut config.desired_retention,
|
&mut config.desired_retention,
|
||||||
default.desired_retention,
|
default.desired_retention,
|
||||||
0.7,
|
0.1,
|
||||||
0.99,
|
0.99,
|
||||||
);
|
);
|
||||||
ensure_f32_valid(
|
ensure_f32_valid(
|
||||||
|
|
|
||||||
|
|
@ -127,7 +127,7 @@ impl crate::services::DeckConfigService for Collection {
|
||||||
|
|
||||||
config.deck_size = guard.cards;
|
config.deck_size = guard.cards;
|
||||||
|
|
||||||
let costs = (70u32..=99u32)
|
let costs = (10u32..=99u32)
|
||||||
.into_par_iter()
|
.into_par_iter()
|
||||||
.map(|dr| {
|
.map(|dr| {
|
||||||
Ok((
|
Ok((
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ impl Collection {
|
||||||
Some(cards),
|
Some(cards),
|
||||||
None,
|
None,
|
||||||
)?
|
)?
|
||||||
.clamp(0.7, 0.95))
|
.clamp(0.1, 0.99))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_optimal_retention_parameters(
|
pub fn get_optimal_retention_parameters(
|
||||||
|
|
|
||||||
|
|
@ -356,7 +356,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
<SpinBoxFloatRow
|
<SpinBoxFloatRow
|
||||||
bind:value={effectiveDesiredRetention}
|
bind:value={effectiveDesiredRetention}
|
||||||
defaultValue={defaults.desiredRetention}
|
defaultValue={defaults.desiredRetention}
|
||||||
min={0.7}
|
min={0.1}
|
||||||
max={0.99}
|
max={0.99}
|
||||||
percentage={true}
|
percentage={true}
|
||||||
bind:focused={desiredRetentionFocused}
|
bind:focused={desiredRetentionFocused}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue