From 2a63b703f98e85480120499961fde43bb63f1381 Mon Sep 17 00:00:00 2001 From: Geometrically <18202329+Geometrically@users.noreply.github.com> Date: Sat, 13 Jan 2024 20:19:45 -0500 Subject: [PATCH] Fix additional categories not showing up correctly (#855) --- src/search/indexing/local_import.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/search/indexing/local_import.rs b/src/search/indexing/local_import.rs index 67ef159a..517d8453 100644 --- a/src/search/indexing/local_import.rs +++ b/src/search/indexing/local_import.rs @@ -268,10 +268,11 @@ pub async fn index_local(pool: &PgPool) -> Result, 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); }