You've already forked AstralRinth
forked from didirus/AstralRinth
Fix additional categories not showing up correctly (#855)
This commit is contained in:
@@ -268,10 +268,11 @@ pub async fn index_local(pool: &PgPool) -> Result<Vec<UploadSearchProject>, Inde
|
|||||||
let mut vals = Vec::new();
|
let mut vals = Vec::new();
|
||||||
let mut featured_vals = Vec::new();
|
let mut featured_vals = Vec::new();
|
||||||
|
|
||||||
for (val, featured) in categories {
|
for (val, is_additional) in categories {
|
||||||
if featured {
|
if !is_additional {
|
||||||
featured_vals.push(val.clone());
|
featured_vals.push(val.clone());
|
||||||
}
|
}
|
||||||
|
|
||||||
vals.push(val);
|
vals.push(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user