From a8921a736e3286a968dfa0b2d83d7afc921317df Mon Sep 17 00:00:00 2001 From: Alexandar Mechev Date: Wed, 14 Oct 2020 18:46:31 +0200 Subject: [PATCH] change theme name --- app/models/config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/models/config.py b/app/models/config.py index 0382ad6..a4e473c 100644 --- a/app/models/config.py +++ b/app/models/config.py @@ -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 = ''