import sys
import subprocess
def fix_html():
with open('dashboard.html', 'r', encoding='utf-8') as f:
content = f.read()
parts = content.split('')
if len(parts) < 2:
print("Could not find in dashboard.html")
return False
top_part = parts[0] + '\n'
new_script = """