From d8276b763db50a32e243083f048296496654dd8a Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 1 Oct 2020 19:53:00 -0700 Subject: [PATCH] Fix default theme evaluation. --- frontends/etiquette_flask/backend/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/etiquette_flask/backend/common.py b/frontends/etiquette_flask/backend/common.py index 1f243d7..e6fa3fa 100644 --- a/frontends/etiquette_flask/backend/common.py +++ b/frontends/etiquette_flask/backend/common.py @@ -191,7 +191,7 @@ def render_template(request, template_name, **kwargs): old_theme = request.cookies.get('etiquette_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( template_name,