From e33858d6ef81d6b48f1e0fbd56252383ed6e032e Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Sun, 30 May 2021 19:20:46 +0200 Subject: [PATCH] [fix] correct kv template formatting and remove internal data Slightly modified merge of commit [ea7ccf24] from searx. [ea7ccf24] https://github.com/searx/searx/commit/ea7ccf24 Signed-off-by: Markus Heiser --- searx/templates/oscar/result_templates/key-value.html | 4 ++-- searx/templates/simple/result_templates/key-value.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/searx/templates/oscar/result_templates/key-value.html b/searx/templates/oscar/result_templates/key-value.html index d5c56a189..9d75682d4 100644 --- a/searx/templates/oscar/result_templates/key-value.html +++ b/searx/templates/oscar/result_templates/key-value.html @@ -1,8 +1,8 @@ {% from 'oscar/macros.html' import result_footer, result_footer_rtl with context %} -
+
{% for key, value in result.items() %} - {% if key in ['engine', 'engines', 'template', 'score', 'category', 'positions'] %} + {% if key in ['engine', 'engines', 'template', 'score', 'category', 'positions', 'pretty_url', 'parsed_url'] %} {% continue %} {% endif %} diff --git a/searx/templates/simple/result_templates/key-value.html b/searx/templates/simple/result_templates/key-value.html index eebaa2c85..cb7f829ee 100644 --- a/searx/templates/simple/result_templates/key-value.html +++ b/searx/templates/simple/result_templates/key-value.html @@ -1,6 +1,6 @@
{% for key, value in result.items() %} - {% if key in ['engine', 'engines', 'template', 'score', 'category', 'positions'] %} + {% if key in ['engine', 'engines', 'template', 'score', 'category', 'positions', 'pretty_url', 'parsed_url'] %} {% continue %} {% endif %}