From 59e3f68f807535ac3ed34e61b96824e0e4dea6db Mon Sep 17 00:00:00 2001 From: Krish M Date: Mon, 16 May 2022 16:00:47 -0500 Subject: [PATCH] fixed variable naming convention --- app/__init__.py | 6 +++--- app/templates/account/blocked.html | 2 +- app/templates/account/certify.html | 2 +- app/templates/account/unauthorized.html | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/__init__.py b/app/__init__.py index 871f080..809b858 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -48,17 +48,17 @@ def create_app(config_name): session['return_url'] = request.args.get('redir', vars.default_referrer) if (not any(item in session['user'].get('eppa') for item in valid_eppa)): - return render_template('account/unauthorized.html', unauthorized_message=messages.unauthorized_message) + return render_template('account/unauthorized.html', unauthorized_msg=messages.unauthorized_message) if rc_util.check_state(session['user'].get('username')) == "blocked": - return render_template('account/blocked.html', unauthorized_message=messages.unauthorized_message) + return render_template('account/blocked.html', unauthorized_msg=messages.unauthorized_message) elif rc_util.check_state(session['user'].get('username')) == "certification": return render_template('account/certify.html', room_id=session['uid'], username=session['user'].get('username'), fullname=session['user'].get('fullname'), email=session['user'].get('email'), referrer=session['return_url'], cancel_url=vars.default_referrer, - cancel_msg=messages.cancel_message, certification_message=messages.certification_message) + cancel_msg=messages.cancel_message, certification_msg=messages.certification_message) else: return render_template('auth/SignUp.html', room_id=session['uid'], username=session['user'].get('username'), diff --git a/app/templates/account/blocked.html b/app/templates/account/blocked.html index b7b729f..f716dfd 100644 --- a/app/templates/account/blocked.html +++ b/app/templates/account/blocked.html @@ -53,7 +53,7 @@

Account blocked

-

{{ unauthorized_message |safe }}

+

{{ unauthorized_msg |safe }}

diff --git a/app/templates/account/certify.html b/app/templates/account/certify.html index 1ed9819..acce5bf 100644 --- a/app/templates/account/certify.html +++ b/app/templates/account/certify.html @@ -80,7 +80,7 @@

Annual Recertification Form

-

{{ certification_message |safe }}

+

{{ certification_msg |safe }}

diff --git a/app/templates/account/unauthorized.html b/app/templates/account/unauthorized.html index ba826f8..339a420 100644 --- a/app/templates/account/unauthorized.html +++ b/app/templates/account/unauthorized.html @@ -53,7 +53,7 @@

Account Authorization error

-

{{ unauthorized_message |safe }}

+

{{ unauthorized_msg |safe }}

-- GitLab