From fa1ef9a07b79ab740c127bac0d11b8315a5130ff Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sun, 18 Jun 2023 16:43:48 +0200 Subject: [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 --- searxng_extra/standalone_searx.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'searxng_extra') diff --git a/searxng_extra/standalone_searx.py b/searxng_extra/standalone_searx.py index 0a1e18846..d7964bd04 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 -- cgit v1.2.3