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

This commit is contained in:
Que Nguyen 2024-06-19 18:22:29 +07:00 committed by GitHub
parent b6ad539379
commit 9e87012489
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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")