This commit is contained in:
2026-04-15 07:55:03 +03:00
parent ed02be0e77
commit 7cbb974d3b
6 changed files with 7 additions and 26 deletions
+1 -4
View File
@@ -1,8 +1,5 @@
use std::collections::HashMap;
use iced::time::now;
use rusqlite::Connection;
use crate::lang::{CardSet, DictionaryElement};
use crate::repetitions::CardSetSettings;
use rusqlite::Connection;
pub fn load_sets(connection: &Connection) -> Vec<CardSetSettings> {
let mut stmt = connection.prepare("SELECT id, name, forward, backward, filter FROM card_set").unwrap();
-3
View File
@@ -2,6 +2,3 @@ pub(crate) mod words;
pub(crate) mod card_sets;
pub(crate) mod card_stats;
use crate::lang;
use crate::dictionary;
+5 -7
View File
@@ -142,10 +142,8 @@ fn create_card_set_table(conn: &Connection) {
)",
(),
)
.unwrap_or_else(|e| {
println!("{}", e);
0
});
}
pub struct Qwerty {}
.unwrap_or_else(|e| {
println!("{}", e);
0
});
}