mirror of
https://github.com/searxng/searxng.git
synced 2025-07-16 01:39:24 +02:00
Merge pull request #1743 from dalf/update_about_metrics
Update about the metrics
This commit is contained in:
commit
691c0ed6b9
4 changed files with 10 additions and 12 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue