flexicraft-website/tools/quartz_check.py

7 lines
362 B
Python
Raw Permalink Normal View History

import sys
sys.path.insert(0, "/var/www/flexicraft-site")
from core.package_updater import scan_external_updates
for item in scan_external_updates():
icon = "✅" if item["status"] == "up_to_date" else ("⏳" if item["status"] == "update_pending" else ("❌" if item["status"] == "error" else "ℹ️"))
print(f"{icon} {item['id']:<22} : {item['msg']}")