From 94a28ebe5302dfe1b4a757853bb872f16144f791 Mon Sep 17 00:00:00 2001 From: Alexandre FLAMENT Date: Fri, 2 Sep 2022 08:30:38 +0000 Subject: Stats: display only the score per result, no anymore the score --- searx/webapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searx/webapp.py') diff --git a/searx/webapp.py b/searx/webapp.py index 8c2046b5c..d697766c5 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), -- cgit v1.2.3 From 66f72a006ff0b15d30457a645e562c08ca6c0662 Mon Sep 17 00:00:00 2001 From: Alexandre FLAMENT Date: Fri, 2 Sep 2022 08:52:23 +0000 Subject: template: when enable_metrics are disabled, hide the empty stats when metrics are disabled: * hide the link to /stats at the bottom of the pages * in /preferences, hide the columns "Response time" and "Reliability" --- searx/webapp.py | 1 + 1 file changed, 1 insertion(+) (limited to 'searx/webapp.py') diff --git a/searx/webapp.py b/searx/webapp.py index d697766c5..5c30a6ed7 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -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 -- cgit v1.2.3