# -*- coding: utf-8 -*-
h = open(r"D:\work buddy\2026-11-05-14-15-52\index_main.html", "r", encoding="utf-8").read()
# Current broken: html",}{id:
# Need: html"},{id:
old = 'dartmouth-computer-science-ms.html",}{'
new = 'dartmouth-computer-science-ms.html"},{'
if old in h:
    h = h.replace(old, new, 1)
    open(r"D:\work buddy\2026-11-05-14-15-52\index_main.html", "w", encoding="utf-8").write(h)
    print("Fixed: moved comma to correct position")
else:
    print("Pattern not found")
