Fixing feature flag

This commit is contained in:
Beverly Nguyen
2025-04-16 13:04:55 -07:00
parent ca1e87a54b
commit 88e9f1dec6
2 changed files with 2 additions and 4 deletions

View File

@@ -25,9 +25,7 @@ from app.utils.user import user_is_logged_in
def check_feature_flags():
# Placeholder for future feature flag checks
# Example:
if request.path.startswith("/jobs") and not current_app.config.get(
"FEATURE_SOCKET_ENABLED", False
):
if "/jobs" in request.path and not current_app.config.get("FEATURE_SOCKET_ENABLED", False):
abort(404)
pass

View File

@@ -11,7 +11,7 @@
{% block maincolumn_content %}
{{ page_header("Message status") }}
<div data-job-id="{{ job.id }}" data-feature="{{FEATURE_SOCKET_ENABLED}}">
<div data-job-id="{{ job.id }}" data-feature="{{FEATURE_SOCKET_ENABLED | lower}}">
{% if not job.finished_processing %}
<div
data-resource="{{ updates_url }}"