Fix sending POST when feature disabled

This commit is contained in:
2025-12-11 03:01:12 -06:00
parent 61dc5db6d0
commit 97dc1dcb98

5
app.py
View File

@@ -2369,6 +2369,11 @@ async def periodic_post_task():
print(f"[POST LOOP] No endpoint for: {feature}") print(f"[POST LOOP] No endpoint for: {feature}")
continue 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) payload = build_payload(enabled)
try: try: