Unverified Commit 9e870124 authored by Que Nguyen's avatar Que Nguyen Committed by GitHub
Browse files

Fix: Rename 'whitelist' to 'filter_list' in function

parent b6ad5393
......@@ -83,7 +83,7 @@ def search_searxng(
results = json_response.get("results", [])
sorted_results = sorted(results, key=lambda x: x.get("score", 0), reverse=True)
if filter_list:
sorted_results = get_filtered_results(sorted_results, whitelist)
sorted_results = get_filtered_results(sorted_results, filter_list)
return [
SearchResult(
link=result["url"], title=result.get("title"), snippet=result.get("content")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment