# -*- coding: utf-8 -*-
import io, sys, os, json, re
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")
os.chdir(r"D:\work buddy\2026-11-05-14-15-52")
todo=json.load(open("todo_upgrade.json",encoding="utf-8"))
idx=open("index_main.html",encoding="utf-8").read()
prog=idx[idx.find("const PROGRAMS="):idx.find("const CATD=")]
for s in ["vanderbilt","geo"]:
    print("="*20,s)
    for t in todo:
        if t["s"]==s:
            dup = t["det"] in prog
            print(f'{t.get("deg","?"):4} {t.get("disc","?"):4} PROG={dup} {t["en"][:48]:48} {t["det"]}')
