diff options
author | Alexandre FLAMENT <alexandre.flament@hesge.ch> | 2022-09-02 08:52:23 +0000 |
---|---|---|
committer | Alexandre FLAMENT <alexandre.flament@hesge.ch> | 2022-09-02 08:52:23 +0000 |
commit | 66f72a006ff0b15d30457a645e562c08ca6c0662 (patch) | |
tree | 102c044088f44d7a805c3743a510e2649706df3f /searx/webapp.py | |
parent | 94a28ebe5302dfe1b4a757853bb872f16144f791 (diff) | |
download | searxng-66f72a006ff0b15d30457a645e562c08ca6c0662.tar.gz searxng-66f72a006ff0b15d30457a645e562c08ca6c0662.zip |
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"
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-x | searx/webapp.py | 1 |
1 files changed, 1 insertions, 0 deletions
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 |