diff options
author | fxqnlr <[email protected]> | 2023-05-25 22:48:54 +0200 |
---|---|---|
committer | fxqnlr <[email protected]> | 2023-05-25 22:48:54 +0200 |
commit | d8554e30029bf43dccce72e982784cd01857b0c4 (patch) | |
tree | 72b4ee26a4f980deb1165e615e47598be017e5fa /src/db.rs | |
parent | 7f1a262999d7a8b7f12a97daf4b6722638dc62a1 (diff) | |
download | modlist-d8554e30029bf43dccce72e982784cd01857b0c4.tar modlist-d8554e30029bf43dccce72e982784cd01857b0c4.tar.gz modlist-d8554e30029bf43dccce72e982784cd01857b0c4.zip |
added mod add progress
Diffstat (limited to 'src/db.rs')
-rw-r--r-- | src/db.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -525,7 +525,7 @@ pub fn lists_remove(config: &Cfg, id: String) -> MLE<()> { | |||
525 | Ok(()) | 525 | Ok(()) |
526 | } | 526 | } |
527 | 527 | ||
528 | pub fn lists_get(config: &Cfg, list_id: String) -> MLE<List> { | 528 | pub 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]), |