flexicraft-website/tools/quartz_check.py

6 lines
362 B
Python
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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']}")