summaryrefslogtreecommitdiff
path: root/src/commands/modification.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/modification.rs')
-rw-r--r--src/commands/modification.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/commands/modification.rs b/src/commands/modification.rs
index 9a1a651..d4c49d6 100644
--- a/src/commands/modification.rs
+++ b/src/commands/modification.rs
@@ -140,6 +140,8 @@ async fn get_mod_infos(config: Cfg, mod_ids: Vec<(String, bool)>, list: List) ->
140 140
141 let mut ids = vec![]; 141 let mut ids = vec![];
142 142
143 println!("{:?}", mod_ids);
144
143 for id in mod_ids { 145 for id in mod_ids {
144 setmap.insert(id.0.to_string(), id.1); 146 setmap.insert(id.0.to_string(), id.1);
145 ids.push(id.0); 147 ids.push(id.0);
@@ -195,14 +197,16 @@ async fn get_mod_infos(config: Cfg, mod_ids: Vec<(String, bool)>, list: List) ->
195 available_versions_vec.push(ver.id); 197 available_versions_vec.push(ver.id);
196 } 198 }
197 199
200 println!("{:?}", setmap);
201
198 projectinfo.push(ProjectInfo { 202 projectinfo.push(ProjectInfo {
199 mod_id: String::from(&project.id), 203 mod_id: String::from(&project.id),
200 slug: project.slug, 204 slug: project.slug.clone(),
201 title: project.title, 205 title: project.title,
202 current_version, 206 current_version,
203 applicable_versions: available_versions_vec, 207 applicable_versions: available_versions_vec,
204 download_link: file, 208 download_link: file,
205 set_version: setmap.get(&project.id).unwrap().clone(), 209 set_version: setmap.get(&project.slug).unwrap().clone(),
206 }) 210 })
207 } else { 211 } else {
208 println!("\t └There's currently no mod version for your specified target"); 212 println!("\t └There's currently no mod version for your specified target");