summaryrefslogtreecommitdiff
path: root/src/commands/modification.rs
diff options
context:
space:
mode:
authorfxqnlr <[email protected]>2023-05-13 12:59:38 +0200
committerfxqnlr <[email protected]>2023-05-13 12:59:38 +0200
commit3181da20e001146653a09f0734e0340b043d9b4b (patch)
treeddcc522a96fc1ca99fac712b63f8dfecaf2f7517 /src/commands/modification.rs
parent8398b4003b72b3eefea11d8f71897ddb48f4b0ad (diff)
downloadmodlist-3181da20e001146653a09f0734e0340b043d9b4b.tar
modlist-3181da20e001146653a09f0734e0340b043d9b4b.tar.gz
modlist-3181da20e001146653a09f0734e0340b043d9b4b.zip
removed todos, fixed get version set
Diffstat (limited to 'src/commands/modification.rs')
-rw-r--r--src/commands/modification.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/commands/modification.rs b/src/commands/modification.rs
index ab42468..9a1a651 100644
--- a/src/commands/modification.rs
+++ b/src/commands/modification.rs
@@ -35,7 +35,6 @@ pub struct ProjectInfo {
35 pub set_version: bool, 35 pub set_version: bool,
36} 36}
37 37
38//TODO fix setversion to per mod
39pub async fn mod_add( 38pub async fn mod_add(
40 config: Cfg, 39 config: Cfg,
41 mods: Vec<AddMod>, 40 mods: Vec<AddMod>,
@@ -264,7 +263,7 @@ async fn get_ver_info(config: Cfg, ver_ids: Vec<(String, bool)>) -> MLE<Vec<Proj
264 current_version: Some(version.clone()), 263 current_version: Some(version.clone()),
265 applicable_versions: vec![String::from(&version.id)], 264 applicable_versions: vec![String::from(&version.id)],
266 download_link: file, 265 download_link: file,
267 set_version: setmap.get(&project.id).unwrap().clone(), 266 set_version: setmap.get(&version.id).unwrap().clone(),
268 }) 267 })
269 } 268 }
270 Ok(projectinfo) 269 Ok(projectinfo)