From 062937ec3ce2bc2960c5c176e7898f31f7b87e9f Mon Sep 17 00:00:00 2001 From: Dylan De Faoite Date: Sat, 14 Mar 2026 17:12:02 +0000 Subject: [PATCH] fix(api): incorrect validation on search --- server/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/app.py b/server/app.py index 9759cd7..3504325 100644 --- a/server/app.py +++ b/server/app.py @@ -163,7 +163,7 @@ def scrape_data(): if name not in connector_metadata: return jsonify({"error": "Source not supported"}), 400 - if category and not connector_metadata[name]["search_enabled"]: + if search and not connector_metadata[name]["search_enabled"]: return jsonify({"error": f"Source {name} does not support search"}), 400 if category and not connector_metadata[name]["categories_enabled"]: