change theme name

This commit is contained in:
Alexandar Mechev 2020-10-14 18:46:31 +02:00
parent de34ab9da2
commit a8921a736e
No known key found for this signature in database
GPG Key ID: 1B754EA636091772

View File

@ -300,8 +300,9 @@ class Config:
{'name': 'Zimbabwe', 'value': 'countryZW'}
]
THEMES = list(set([theme_name.split('-')[0]
for theme_name in os.listdir('app/static/css/themes/')]))
THEMES = list(set([theme_name.split('.css')[0]
for theme_name in os.listdir('app/static/css/themes/')
if "-search.css" not in theme_name]))
def __init__(self, **kwargs):
self.url = ''