From 9b3efa6d8ab46a3db62f42624d7e9f4b55fdd0ef Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Sat, 7 May 2022 15:11:05 +0200 Subject: theme: remove __common__ --- searx/webutils.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'searx/webutils.py') diff --git a/searx/webutils.py b/searx/webutils.py index 5be721eec..b18fd5c6a 100644 --- a/searx/webutils.py +++ b/searx/webutils.py @@ -53,10 +53,7 @@ class UnicodeWriter: def get_themes(templates_path): """Returns available themes list.""" - themes = os.listdir(templates_path) - if '__common__' in themes: - themes.remove('__common__') - return themes + return os.listdir(templates_path) def get_hash_for_file(file: pathlib.Path) -> str: -- cgit v1.2.3