bmc_hub/app/modules/links/jobs/dead_link_check.py
Christian bc504b9257 feat: Add subscription management functionality and AnyDesk API integration
- Implemented subscription creation, updating, and rendering in script_9.js.
- Added functions for handling subscription line items, product selection, and total calculations.
- Integrated AnyDesk API for session management in test_anydesk.py.
- Created REST client test requests for API endpoints in api.http.
- Developed a script to check ESET machine status and save details in tmp_check_eset_machine.py.
2026-03-30 07:50:15 +02:00

19 lines
597 B
Python

import logging
from app.core.database import execute_query
logger = logging.getLogger(__name__)
async def check_links_health():
rows = execute_query("SELECT id, type, url, host FROM links WHERE deleted_at IS NULL", ()) or []
for row in rows:
execute_query(
"""
INSERT INTO link_status_checks (link_id, status, details)
VALUES (%s, %s, %s::jsonb)
""",
(row["id"], "unknown", '{"reason":"initial implementation placeholder"}'),
)
logger.info("✅ Links health placeholder executed for %s links", len(rows))