#!/usr/bin/env python3
path = "/var/www/html/weval-technology-platform.html"
with open(path, "r", encoding="utf-8") as f:
content = f.read()
if "all-ia-hub" in content:
print("ALREADY")
exit(0)
old = 'Big4 Model'
new = old + '\n All-IA Hub'
if old in content:
content = content.replace(old, new, 1)
with open(path, "w", encoding="utf-8") as f:
f.write(content)
print(f"PATCHED size={len(content)}")
else:
print("MARKER NOT FOUND")