aboutsummaryrefslogtreecommitdiff
path: root/sjdbmk/inspire_approve.py
blob: 98d202c1993eacc8f6dedb023eed5413e0fdf5a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env python3

from __future__ import annotations
import json
import sys

for fn in sys.argv[1:]:
    with open(fn, "r+") as fd:
        jq = json.load(fd)
        jq["approved"] = True
        json.dump(jq, fd, indent="\t")