Fixed linting errors

This commit is contained in:
alexjanousekGSA
2024-10-15 12:54:37 -04:00
parent e62cc021e9
commit 2504e58a87

View File

@@ -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: