mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-05-18 07:15:49 +02:00
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:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user