mirror of
https://github.com/open-webui/open-webui
synced 2025-05-31 11:00:49 +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", [])
|
results = json_response.get("results", [])
|
||||||
sorted_results = sorted(results, key=lambda x: x.get("score", 0), reverse=True)
|
sorted_results = sorted(results, key=lambda x: x.get("score", 0), reverse=True)
|
||||||
if filter_list:
|
if filter_list:
|
||||||
sorted_results = get_filtered_results(sorted_results, whitelist)
|
sorted_results = get_filtered_results(sorted_results, filter_list)
|
||||||
return [
|
return [
|
||||||
SearchResult(
|
SearchResult(
|
||||||
link=result["url"], title=result.get("title"), snippet=result.get("content")
|
link=result["url"], title=result.get("title"), snippet=result.get("content")
|
||||||
|
Loading…
Reference in New Issue
Block a user