From 2504e58a87a34f03e8bdccf9e3da51c96c9170e2 Mon Sep 17 00:00:00 2001 From: alexjanousekGSA Date: Tue, 15 Oct 2024 12:54:37 -0400 Subject: [PATCH] Fixed linting errors --- app/main/views/index.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/main/views/index.py b/app/main/views/index.py index 79053077f..7ead8b647 100644 --- a/app/main/views/index.py +++ b/app/main/views/index.py @@ -26,12 +26,14 @@ from notifications_utils.url_safe_token import generate_token feature_guidance_enabled = os.getenv('FEATURE_GUIDANCE_ENABLED', 'false').lower() == 'true' + # Hook to check for guidance routes @main.before_request def check_guidance_feature(): if request.path.startswith("/guidance") and not feature_guidance_enabled: abort(404) + @main.route("/") def index(): if current_user and current_user.is_authenticated: