From 99aaf86b739b8b93ec0f133822753e8c5ea96e0e Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Wed, 19 May 2021 11:28:57 +0200 Subject: [fix] offline engines: fix templates /stats and /preferences --- searx/templates/oscar/stats.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'searx/templates/oscar/stats.html') diff --git a/searx/templates/oscar/stats.html b/searx/templates/oscar/stats.html index 94117b673..d9b2ab68e 100644 --- a/searx/templates/oscar/stats.html +++ b/searx/templates/oscar/stats.html @@ -52,11 +52,11 @@ {%- endif -%} - {%- if engine_stat.total -%} + {%- if engine_stat.total is not none -%}
{{- engine_stat.total | round(1) -}}
{{- "" -}}