Cleanup
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -2,6 +2,3 @@ pub(crate) mod words;
|
||||
pub(crate) mod card_sets;
|
||||
pub(crate) mod card_stats;
|
||||
|
||||
use crate::lang;
|
||||
use crate::dictionary;
|
||||
|
||||
|
||||
@@ -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
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user