mirror of
https://github.com/ankitects/anki.git
synced 2026-01-05 18:13:56 -05:00
Merge c2948f620b into 8f2144534b
This commit is contained in:
commit
c8e0574d17
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(
|
||||
&mut config.desired_retention,
|
||||
default.desired_retention,
|
||||
0.7,
|
||||
0.1,
|
||||
0.99,
|
||||
);
|
||||
ensure_f32_valid(
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ impl crate::services::DeckConfigService for Collection {
|
|||
|
||||
config.deck_size = guard.cards;
|
||||
|
||||
let costs = (70u32..=99u32)
|
||||
let costs = (10u32..=99u32)
|
||||
.into_par_iter()
|
||||
.map(|dr| {
|
||||
Ok((
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ impl Collection {
|
|||
Some(cards),
|
||||
None,
|
||||
)?
|
||||
.clamp(0.7, 0.95))
|
||||
.clamp(0.1, 0.99))
|
||||
}
|
||||
|
||||
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
|
||||
bind:value={effectiveDesiredRetention}
|
||||
defaultValue={defaults.desiredRetention}
|
||||
min={0.7}
|
||||
min={0.1}
|
||||
max={0.99}
|
||||
percentage={true}
|
||||
bind:focused={desiredRetentionFocused}
|
||||
|
|
|
|||
Loading…
Reference in a new issue