- 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.
19 lines
597 B
Python
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))
|