From f7e5b639e30c79b4c9f714b7c702576ea9b1909c Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 12 Sep 2020 10:13:24 -0700 Subject: [PATCH] Remove *args from common.render_template. Just template_name. --- frontends/etiquette_flask/backend/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontends/etiquette_flask/backend/common.py b/frontends/etiquette_flask/backend/common.py index 2811b0a..df1c107 100644 --- a/frontends/etiquette_flask/backend/common.py +++ b/frontends/etiquette_flask/backend/common.py @@ -138,7 +138,7 @@ def P_user(username): def P_user_id(user_id): return P.get_user(id=user_id) -def render_template(request, *args, **kwargs): +def render_template(request, template_name, **kwargs): session = session_manager.get(request) old_theme = request.cookies.get('etiquette_theme', None) @@ -146,9 +146,9 @@ def render_template(request, *args, **kwargs): theme = '' if new_theme == '' else new_theme or old_theme response = flask.render_template( + template_name, session=session, theme=theme, - *args, **kwargs, )