Small fixes

Remove print statements and use format strings instead of "+"
This commit is contained in:
Jan-Pieter Baert 2019-12-17 23:44:15 +01:00
parent 98c57b161e
commit d6f0019232
No known key found for this signature in database
GPG key ID: B19186932178234A

View file

@ -49,8 +49,6 @@ def get_css_dict(css_path):
# Check each theme in the dictionary and return the first one that is "correct" # Check each theme in the dictionary and return the first one that is "correct"
for key, theme in themes.items(): for key, theme in themes.items():
print(key)
print(theme)
if theme['type'] == 'static-date': if theme['type'] == 'static-date':
start_day, start_month = theme['start'].split('/') start_day, start_month = theme['start'].split('/')
start_date = datetime(year=current_year, day=int( start_date = datetime(year=current_year, day=int(
@ -96,7 +94,7 @@ def css():
# TODO: Fix to work with default cookie value [customTheme] # TODO: Fix to work with default cookie value [customTheme]
if cookie_theme == "customTheme": if cookie_theme == "customTheme":
path = css_path+"ligtmode.css" path = f"{css_path}ligtmode.css"
else: else:
path = themes_dict[cookie_theme] path = themes_dict[cookie_theme]