mirror of
https://github.com/open-webui/open-webui
synced 2025-02-20 12:00:22 +00:00
Fix: Rename 'whitelist' to 'filter_list' in function
This commit is contained in:
parent
b6ad539379
commit
9e87012489
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user