summaryrefslogtreecommitdiff
path: root/searx/webutils.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2022-05-08 10:45:45 +0200
committerGitHub <noreply@github.com>2022-05-08 10:45:45 +0200
commit85c1c14fd7e8ff217ff57509cf9d58ec92f7af9a (patch)
tree8e29e2083e235a315345c9c43ddff0f962340fde /searx/webutils.py
parent6db568bf69b7145451ff90e14da0e49fb5b6269b (diff)
parent1e45dbbae9b6bb7b85ce6620556b955799ed4fe5 (diff)
Merge pull request #1186 from dalf/theme_remove_common
Theme: remove __common__ directories
Diffstat (limited to 'searx/webutils.py')
-rw-r--r--searx/webutils.py5
1 files changed, 1 insertions, 4 deletions
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: