You've already forked AstralRinth
forked from didirus/AstralRinth
Implement more database methods and basic API routes (#50)
* feat: Implement more database methods & add mod and version routes * feat: Implement deleting mods/versions & implement categories * feat: Implement routes for categories, game versions & loaders * feat: Reorganize API routes in a (hopefully) usable way
This commit is contained in:
@@ -142,7 +142,7 @@ pub async fn index_curseforge(
|
||||
}
|
||||
}
|
||||
|
||||
if mod_categories.contains(&"fabric".to_owned()) {
|
||||
if mod_categories.iter().any(|e| e == "fabric") {
|
||||
using_fabric = true;
|
||||
}
|
||||
|
||||
@@ -154,7 +154,8 @@ pub async fn index_curseforge(
|
||||
mod_categories.push(String::from("forge"));
|
||||
}
|
||||
if using_fabric {
|
||||
mod_categories.push(String::from("fabric"));
|
||||
// The only way this could happen is if "fabric" is already a category
|
||||
// mod_categories.push(String::from("fabric"));
|
||||
}
|
||||
|
||||
let mut mod_attachments = curseforge_mod.attachments;
|
||||
|
||||
Reference in New Issue
Block a user