mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 20:17:45 +01:00
fix issues from review
This commit is contained in:
parent
7cfd8d900a
commit
baff1cbbab
@ -20,6 +20,7 @@ import searx.settings_loader
|
|||||||
from os import environ
|
from os import environ
|
||||||
from os.path import realpath, dirname, join, abspath, isfile
|
from os.path import realpath, dirname, join, abspath, isfile
|
||||||
|
|
||||||
|
|
||||||
searx_dir = abspath(dirname(__file__))
|
searx_dir = abspath(dirname(__file__))
|
||||||
engine_dir = dirname(realpath(__file__))
|
engine_dir = dirname(realpath(__file__))
|
||||||
static_path = abspath(join(dirname(__file__), 'static'))
|
static_path = abspath(join(dirname(__file__), 'static'))
|
||||||
|
@ -16,24 +16,6 @@
|
|||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
|
|
||||||
{%- macro engine_time(engine_name, css_align_class) -%}
|
|
||||||
<td class="{{ css_align_class }} {{ 'danger' if stats[engine_name]['warn_time'] else '' }}">
|
|
||||||
{%- if stats[engine_name].time != None -%}
|
|
||||||
<span aria-labelledby="{{engine_name}}_time">
|
|
||||||
{%- if stats[engine_name]['warn_time'] -%}
|
|
||||||
{{icon('exclamation-sign')}}
|
|
||||||
{%- endif -%}
|
|
||||||
{{- stats[engine_name].time -}}
|
|
||||||
</span>{{- "" -}}
|
|
||||||
<div class="engine-tooltip text-left" role="tooltip" id="{{engine_name}}_time">{{- "" -}}
|
|
||||||
<p>{{ _('Median') }}: {{ stats[engine_name].time }}</p>{{- "" -}}
|
|
||||||
<p>{{ _('P80') }}: {{ stats[engine_name].rate80 }}</p>{{- "" -}}
|
|
||||||
<p>{{ _('P95') }}: {{ stats[engine_name].rate95 }}</p>{{- "" -}}
|
|
||||||
</div>
|
|
||||||
{%- endif -%}
|
|
||||||
</td>
|
|
||||||
{%- endmacro -%}
|
|
||||||
|
|
||||||
{%- macro engine_time(engine_name, css_align_class) -%}
|
{%- macro engine_time(engine_name, css_align_class) -%}
|
||||||
<td class="{{ label }}" style="padding: 2px">{{- "" -}}
|
<td class="{{ label }}" style="padding: 2px">{{- "" -}}
|
||||||
{%- if stats[engine_name].time != None -%}
|
{%- if stats[engine_name].time != None -%}
|
||||||
|
Loading…
Reference in New Issue
Block a user