forked from Ponysearch/Ponysearch
Stats: display only the score per result, no anymore the score
This commit is contained in:
parent
ea61d6ed12
commit
94a28ebe53
2 changed files with 2 additions and 5 deletions
|
@ -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-name"><a href="{{ url_for('stats', engine=engine_stat.name|e) }}">{{ engine_stat.name }}</a></td>
|
||||||
<td class="engine-score">
|
<td class="engine-score">
|
||||||
{% if engine_stat.score %}
|
{% if engine_stat.score %}
|
||||||
<span aria-labelledby="{{engine_stat.name}}_score" >{{ engine_stat.score|round(1) }}</span>
|
<span>{{ engine_stat.score_per_result|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>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td class="engine-result-count">
|
<td class="engine-result-count">
|
||||||
|
|
|
@ -145,7 +145,7 @@ result_templates = get_result_templates(templates_path)
|
||||||
|
|
||||||
STATS_SORT_PARAMETERS = {
|
STATS_SORT_PARAMETERS = {
|
||||||
'name': (False, 'name', ''),
|
'name': (False, 'name', ''),
|
||||||
'score': (True, 'score', 0),
|
'score': (True, 'score_per_result', 0),
|
||||||
'result_count': (True, 'result_count', 0),
|
'result_count': (True, 'result_count', 0),
|
||||||
'time': (False, 'total', 0),
|
'time': (False, 'total', 0),
|
||||||
'reliability': (False, 'reliability', 100),
|
'reliability': (False, 'reliability', 100),
|
||||||
|
|
Loading…
Reference in a new issue