summaryrefslogtreecommitdiff
path: root/searxng_extra
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2023-06-18 16:43:48 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2023-06-19 19:49:44 +0200
commitfa1ef9a07b79ab740c127bac0d11b8315a5130ff (patch)
tree80306333c2e5a13a0b3a286e7dad7b5df633689e /searxng_extra
parent71b6ff07ca137a39576c3084abec348ded40564e (diff)
[mod] move some code from webapp module to webutils module (no functional change)
Over the years the webapp module became more and more a mess. To improve the modulaization a little this patch moves some implementations from the webapp module to webutils module. HINT: this patch brings non functional change Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searxng_extra')
-rwxr-xr-xsearxng_extra/standalone_searx.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searxng_extra/standalone_searx.py b/searxng_extra/standalone_searx.py
index 0a1e1884..d7964bd0 100755
--- a/searxng_extra/standalone_searx.py
+++ b/searxng_extra/standalone_searx.py
@@ -60,7 +60,7 @@ Example to run it from python:
"infoboxes": [ {...} ],
"paging": true,
"results": [... ],
- "results_number": 820000000.0,
+ "number_of_results": 820000000.0,
"search": {
"lang": "all",
"pageno": 1,
@@ -150,7 +150,7 @@ def to_dict(search_query: searx.search.SearchQuery) -> Dict[str, Any]:
"suggestions": list(result_container.suggestions),
"answers": list(result_container.answers),
"paging": result_container.paging,
- "results_number": result_container.results_number(),
+ "number_of_results": result_container.number_of_results,
}
return result_container_json