mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
[enh] add surrogates
to lower fork maintenance, some objects in SearXNG can be replaced. The configuration is done in settings.yml
This commit is contained in:
parent
602cbc2c99
commit
752c224608
11 changed files with 102 additions and 52 deletions
|
|
@ -140,7 +140,7 @@ def json_serial(obj: Any) -> Any:
|
|||
|
||||
def to_dict(search_query: searx.search.SearchQuery) -> Dict[str, Any]:
|
||||
"""Get result from parsed arguments."""
|
||||
result_container = searx.search.Search(search_query).search()
|
||||
result_container = searx.search.BasicSearch(search_query).search()
|
||||
result_container_json = {
|
||||
"search": {
|
||||
"q": search_query.query,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue