summaryrefslogtreecommitdiff
path: root/src/db.rs
diff options
context:
space:
mode:
authorfxqnlr <[email protected]>2023-05-25 22:48:54 +0200
committerfxqnlr <[email protected]>2023-05-25 22:48:54 +0200
commitd8554e30029bf43dccce72e982784cd01857b0c4 (patch)
tree72b4ee26a4f980deb1165e615e47598be017e5fa /src/db.rs
parent7f1a262999d7a8b7f12a97daf4b6722638dc62a1 (diff)
downloadmodlist-d8554e30029bf43dccce72e982784cd01857b0c4.tar
modlist-d8554e30029bf43dccce72e982784cd01857b0c4.tar.gz
modlist-d8554e30029bf43dccce72e982784cd01857b0c4.zip
added mod add progress
Diffstat (limited to 'src/db.rs')
-rw-r--r--src/db.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db.rs b/src/db.rs
index 22085a5..1f3ad4c 100644
--- a/src/db.rs
+++ b/src/db.rs
@@ -525,7 +525,7 @@ pub fn lists_remove(config: &Cfg, id: String) -> MLE<()> {
525 Ok(()) 525 Ok(())
526} 526}
527 527
528pub fn lists_get(config: &Cfg, list_id: String) -> MLE<List> { 528pub fn lists_get(config: &Cfg, list_id: &str) -> MLE<List> {
529 let data = format!("{}/data.db", config.data); 529 let data = format!("{}/data.db", config.data);
530 let connection = Connection::open(data).unwrap(); 530 let connection = Connection::open(data).unwrap();
531 531
@@ -549,7 +549,7 @@ pub fn lists_get(config: &Cfg, list_id: String) -> MLE<List> {
549 for l in list_iter { 549 for l in list_iter {
550 let li = l?; 550 let li = l?;
551 list = List { 551 list = List {
552 id: String::from(&list_id), 552 id: list_id.to_string(),
553 mc_version: String::from(&li[0]), 553 mc_version: String::from(&li[0]),
554 modloader: Modloader::from(&li[1])?, 554 modloader: Modloader::from(&li[1])?,
555 download_folder: String::from(&li[2]), 555 download_folder: String::from(&li[2]),