Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Fix additional categories not showing up correctly (#855)
Browse files Browse the repository at this point in the history
  • Loading branch information
Geometrically authored Jan 14, 2024
1 parent bfeff78 commit 2a63b70
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/search/indexing/local_import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,11 @@ pub async fn index_local(pool: &PgPool) -> Result<Vec<UploadSearchProject>, Inde
let mut vals = Vec::new();
let mut featured_vals = Vec::new();

for (val, featured) in categories {
if featured {
for (val, is_additional) in categories {
if !is_additional {
featured_vals.push(val.clone());
}

vals.push(val);
}

Expand Down

0 comments on commit 2a63b70

Please sign in to comment.