summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2022-09-04 11:29:28 +0200
committerGitHub <noreply@github.com>2022-09-04 11:29:28 +0200
commit691c0ed6b97c2480fdc1245fd09231b0b384bbf0 (patch)
treee2a9e0279aa69e5bdc428fddb24f976b4aa0be16 /searx/webapp.py
parent0d1af21f9a4ba61b11ff4a3587d03ff14b89ee32 (diff)
parent66f72a006ff0b15d30457a645e562c08ca6c0662 (diff)
downloadsearxng-691c0ed6b97c2480fdc1245fd09231b0b384bbf0.tar.gz
searxng-691c0ed6b97c2480fdc1245fd09231b0b384bbf0.zip
Merge pull request #1743 from dalf/update_about_metrics
Update about the metrics
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-xsearx/webapp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 369b2d2db..bd76cc534 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -145,7 +145,7 @@ result_templates = get_result_templates(templates_path)
STATS_SORT_PARAMETERS = {
'name': (False, 'name', ''),
- 'score': (True, 'score', 0),
+ 'score': (True, 'score_per_result', 0),
'result_count': (True, 'result_count', 0),
'time': (False, 'total', 0),
'reliability': (False, 'reliability', 100),
@@ -450,6 +450,7 @@ def render(template_name: str, **kwargs):
kwargs['instance_name'] = get_setting('general.instance_name')
kwargs['searx_version'] = VERSION_STRING
kwargs['searx_git_url'] = GIT_URL
+ kwargs['enable_metrics'] = get_setting('general.enable_metrics')
kwargs['get_setting'] = get_setting
kwargs['get_pretty_url'] = get_pretty_url