diff options
| author | Alexandre Flament <alex@al-f.net> | 2022-05-08 10:45:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-08 10:45:45 +0200 |
| commit | 85c1c14fd7e8ff217ff57509cf9d58ec92f7af9a (patch) | |
| tree | 8e29e2083e235a315345c9c43ddff0f962340fde /searx/webutils.py | |
| parent | 6db568bf69b7145451ff90e14da0e49fb5b6269b (diff) | |
| parent | 1e45dbbae9b6bb7b85ce6620556b955799ed4fe5 (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.py | 5 |
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: |