import sys
sys.path.insert(0, r"C:\Users\Public\kage_sheet_work")
import sheet_drive
cleared, unlocked = int(sys.argv[1]), int(sys.argv[2])
d = sheet_drive.attach()
for key, val in [
    ("kage.settings.progress.cleared", cleared),
    ("kage.settings.progress.unlocked_stage", unlocked),
]:
    print("patch:", key, "=", val, sheet_drive.js_prefs_patch_int(d, key, val), flush=True)
print("PATCH_PROG_DONE", flush=True)
