From 97dc1dcb9807378c7df506ded9a4fb288d882034 Mon Sep 17 00:00:00 2001 From: Pengu Date: Thu, 11 Dec 2025 03:01:12 -0600 Subject: [PATCH] Fix sending POST when feature disabled --- app.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app.py b/app.py index b4eb7ce..a441b95 100644 --- a/app.py +++ b/app.py @@ -2369,6 +2369,11 @@ async def periodic_post_task(): print(f"[POST LOOP] No endpoint for: {feature}") continue + # Skip POST if the feature is disabled (0) + if not enabled: + print(f"[POST LOOP] Skipping {feature} because it's disabled.") + continue + payload = build_payload(enabled) try: