Fix default theme evaluation.

This commit is contained in:
voussoir 2020-10-01 19:53:00 -07:00
parent 83cd4b7cd2
commit d8276b763d

View file

@ -191,7 +191,7 @@ def render_template(request, template_name, **kwargs):
old_theme = request.cookies.get('etiquette_theme', None) old_theme = request.cookies.get('etiquette_theme', None)
new_theme = request.args.get('theme', None) new_theme = request.args.get('theme', None)
theme = 'turquoise' if new_theme == '' else new_theme or old_theme theme = new_theme or old_theme or 'turquoise'
response = flask.render_template( response = flask.render_template(
template_name, template_name,