mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 12:55:19 +00:00
Fix: Rename 'whitelist' to 'filter_list' in function
This commit is contained in:
parent
b6ad539379
commit
9e87012489
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue