Full split of lang.rs

This commit is contained in:
micialware committed 2026-08-24 11:35:37 +03:00
1 parent 22b455a640
commit c67663141f
17 files changed
+81 -78

No files matched your search

+3 -4
View File
@@ -10,8 +10,9 @@ use rhai::{Engine, Scope};
use crate::app::AppState;
use crate::core::srs::{OrderMode, OrderModule, RandomSRSModule, SRSModule, SemiRandomSRSModule, WordOpenMode, WorstWordsSRSModule, FADE_PER_DAY, MAX_SCORE};
use crate::data_provider::card_stats::{load_stats_of_deck, update_stat_score};
use crate::data_provider::history::{push_note, HistoryItem};
use crate::lang::{ Id, WordData};
use crate::data_provider::history::{push_note};
use crate::data::entities::*;
use crate::data::Id;
#[derive(Clone)]
pub struct DeckSettings {
@@ -21,7 +22,6 @@ pub struct DeckSettings {
pub backward: String,
pub filter: String,
pub count: Option<usize>,
pub worst_words_list: Option<Vec<WordData>>,
pub open_mode: OrderMode,
}
impl DeckSettings {
@@ -33,7 +33,6 @@ impl DeckSettings {
backward: "".to_string(),
filter: "true".to_string(),
count: None,
worst_words_list: None,
open_mode: OrderMode::Default,
}
}
-2
View File
@@ -3,8 +3,6 @@ use rand::distr::weighted::WeightedIndex;
use rand::prelude::ThreadRng;
use rand::prelude::{Distribution, SliceRandom};
use rand::rng;
use rayon::iter::IndexedParallelIterator;
use rayon::iter::ParallelIterator;
const MAX_HISTORY_LEN: usize = 20;
const MAX_HISTORY_LEN_PART: f32 = 0.33;