diff options
author | fxqnlr <[email protected]> | 2023-02-19 12:14:37 +0100 |
---|---|---|
committer | fxqnlr <[email protected]> | 2023-02-19 12:14:37 +0100 |
commit | 9f2f36eb7ff00d655ab9fb12f10434962b7de1a2 (patch) | |
tree | a45f7334cddaff7e686563b4d8e49bbd3d52ede6 /src/db.rs | |
parent | ca438e8956f8ce179551d659e3b82d679759707e (diff) | |
download | modlist-9f2f36eb7ff00d655ab9fb12f10434962b7de1a2.tar modlist-9f2f36eb7ff00d655ab9fb12f10434962b7de1a2.tar.gz modlist-9f2f36eb7ff00d655ab9fb12f10434962b7de1a2.zip |
Fixed import output && cleanup
Diffstat (limited to 'src/db.rs')
-rw-r--r-- | src/db.rs | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -7,8 +7,6 @@ use crate::{Modloader, config::Cfg, List, devdir, error::{MLE, MLError, ErrorTyp | |||
7 | //MODS | 7 | //MODS |
8 | pub fn mods_insert(config: Cfg, id: &str, slug: &str, name: &str) -> MLE<()> { | 8 | pub fn mods_insert(config: Cfg, id: &str, slug: &str, name: &str) -> MLE<()> { |
9 | 9 | ||
10 | println!("\t └Save mod info"); | ||
11 | |||
12 | let data = devdir(format!("{}/data.db", config.data).as_str()); | 10 | let data = devdir(format!("{}/data.db", config.data).as_str()); |
13 | let connection = Connection::open(data)?; | 11 | let connection = Connection::open(data)?; |
14 | 12 | ||
@@ -160,8 +158,6 @@ pub fn mods_get_versions(config: Cfg, mods: Vec<String>) -> MLE<Vec<DBModlistVer | |||
160 | 158 | ||
161 | //userlist | 159 | //userlist |
162 | pub fn userlist_insert(config: Cfg, list_id: &str, mod_id: &str, current_version: &str, applicable_versions: Vec<String>, current_link: &str, set_version: bool) -> MLE<()> { | 160 | pub fn userlist_insert(config: Cfg, list_id: &str, mod_id: &str, current_version: &str, applicable_versions: Vec<String>, current_link: &str, set_version: bool) -> MLE<()> { |
163 | println!("\t └Insert in list"); | ||
164 | |||
165 | let data = devdir(format!("{}/data.db", config.data).as_str()); | 161 | let data = devdir(format!("{}/data.db", config.data).as_str()); |
166 | let connection = Connection::open(data)?; | 162 | let connection = Connection::open(data)?; |
167 | 163 | ||