From 0e23113f706aa3b123f93054e55bdf52e928a5b0 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Tue, 8 Jun 2021 11:22:46 +0200 Subject: [PATCH] [mod] remove unused filter searx.webapp.extract_domain it was used in the pix-art theme --- searx/webapp.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/searx/webapp.py b/searx/webapp.py index d35ccf4c2..9c2374200 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -17,10 +17,7 @@ from html import escape from io import StringIO import urllib -from urllib.parse import ( - urlencode, - urlparse, -) +from urllib.parse import urlencode import httpx @@ -349,12 +346,6 @@ def code_highlighter(codelines, language=None): return html_code -# Extract domain from url -@app.template_filter('extract_domain') -def extract_domain(url): - return urlparse(url)[1] - - def get_current_theme_name(override=None): """Returns theme name.