diff options
author | Alexandre FLAMENT <alexandre.flament@hesge.ch> | 2022-09-02 08:30:38 +0000 |
---|---|---|
committer | Alexandre FLAMENT <alexandre.flament@hesge.ch> | 2022-09-02 08:30:38 +0000 |
commit | 94a28ebe5302dfe1b4a757853bb872f16144f791 (patch) | |
tree | 6c47636a937b71fadc5dff22dd616c5379a74b70 | |
parent | ea61d6ed12dcf55e370ff77d3b23da37a2cb6373 (diff) | |
download | searxng-94a28ebe5302dfe1b4a757853bb872f16144f791.tar.gz searxng-94a28ebe5302dfe1b4a757853bb872f16144f791.zip |
Stats: display only the score per result, no anymore the score
-rw-r--r-- | searx/templates/simple/stats.html | 5 | ||||
-rwxr-xr-x | searx/webapp.py | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/searx/templates/simple/stats.html b/searx/templates/simple/stats.html index 378fedd43..d2d5ae2b1 100644 --- a/searx/templates/simple/stats.html +++ b/searx/templates/simple/stats.html @@ -33,10 +33,7 @@ <td class="engine-name"><a href="{{ url_for('stats', engine=engine_stat.name|e) }}">{{ engine_stat.name }}</a></td> <td class="engine-score"> {% if engine_stat.score %} - <span aria-labelledby="{{engine_stat.name}}_score" >{{ engine_stat.score|round(1) }}</span> - <div class="engine-tooltip" role="tooltip" id="{{engine_stat.name}}_score">{{- "" -}} - <p>{{ _('Scores per result') }}: {{ engine_stat.score_per_result | round(3) }}</p> - </div> + <span>{{ engine_stat.score_per_result|round(1) }}</span> {% endif %} </td> <td class="engine-result-count"> 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), |