summaryrefslogtreecommitdiff
path: root/src/db.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/db.rs')
-rw-r--r--src/db.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/db.rs b/src/db.rs
index a7c149c..9428466 100644
--- a/src/db.rs
+++ b/src/db.rs
@@ -7,8 +7,6 @@ use crate::{Modloader, config::Cfg, List, devdir, error::{MLE, MLError, ErrorTyp
7//MODS 7//MODS
8pub fn mods_insert(config: Cfg, id: &str, slug: &str, name: &str) -> MLE<()> { 8pub 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
162pub 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<()> { 160pub 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