fix: Use correct bridge URL in cleanup job

Changed config.BRIDGE_URL to config.MC_BRIDGE_URL and GET to POST
for bridge API calls in _cleanup_job().

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
MarekWo
2026-01-25 15:03:34 +01:00
parent a4ef0fd497
commit ecf3b42751
+3 -3
View File
@@ -283,8 +283,8 @@ def _cleanup_job():
# Get contacts from device
import requests
response = requests.get(
f"{config.BRIDGE_URL}/cli",
response = requests.post(
config.MC_BRIDGE_URL,
json={'args': ['contacts']},
timeout=30
)
@@ -343,7 +343,7 @@ def _cleanup_job():
try:
delete_response = requests.post(
f"{config.BRIDGE_URL}/cli",
config.MC_BRIDGE_URL,
json={'args': ['contact', '-d', name]},
timeout=30
)