From 47c22aef837c7eb5f6bdbba1ac718fc5fb10d010 Mon Sep 17 00:00:00 2001 From: Xoconoch Date: Sat, 14 Jun 2025 19:53:59 -0700 Subject: [PATCH] Fixed search null items --- routes/search.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/routes/search.py b/routes/search.py index 602a2c9..ced9a08 100755 --- a/routes/search.py +++ b/routes/search.py @@ -47,6 +47,10 @@ def handle_search(): elif raw_results and search_type in raw_results: items = raw_results[search_type].get("items", []) + # Filter out any null items from the results + if items: + items = [item for item in items if item is not None] + # Return both the items array and the full data for debugging return jsonify( {