mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Fixed linting errors
This commit is contained in:
@@ -26,12 +26,14 @@ from notifications_utils.url_safe_token import generate_token
|
|||||||
|
|
||||||
feature_guidance_enabled = os.getenv('FEATURE_GUIDANCE_ENABLED', 'false').lower() == 'true'
|
feature_guidance_enabled = os.getenv('FEATURE_GUIDANCE_ENABLED', 'false').lower() == 'true'
|
||||||
|
|
||||||
|
|
||||||
# Hook to check for guidance routes
|
# Hook to check for guidance routes
|
||||||
@main.before_request
|
@main.before_request
|
||||||
def check_guidance_feature():
|
def check_guidance_feature():
|
||||||
if request.path.startswith("/guidance") and not feature_guidance_enabled:
|
if request.path.startswith("/guidance") and not feature_guidance_enabled:
|
||||||
abort(404)
|
abort(404)
|
||||||
|
|
||||||
|
|
||||||
@main.route("/")
|
@main.route("/")
|
||||||
def index():
|
def index():
|
||||||
if current_user and current_user.is_authenticated:
|
if current_user and current_user.is_authenticated:
|
||||||
|
|||||||
Reference in New Issue
Block a user