From ecf3b42751160bc259ae36fbd772060d58aaf9bc Mon Sep 17 00:00:00 2001 From: MarekWo Date: Sun, 25 Jan 2026 15:03:34 +0100 Subject: [PATCH] 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 --- app/archiver/manager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/archiver/manager.py b/app/archiver/manager.py index 031cb43..d4e7eac 100644 --- a/app/archiver/manager.py +++ b/app/archiver/manager.py @@ -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 )