Fixed search null items

This commit is contained in:
Xoconoch
2025-06-14 19:53:59 -07:00
parent 6bd4cadd37
commit 47c22aef83

View File

@@ -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(
{