aboutsummaryrefslogtreecommitdiff
path: root/sjdbmk/inspire_approve.py
diff options
context:
space:
mode:
Diffstat (limited to 'sjdbmk/inspire_approve.py')
-rw-r--r--sjdbmk/inspire_approve.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/sjdbmk/inspire_approve.py b/sjdbmk/inspire_approve.py
new file mode 100644
index 0000000..98d202c
--- /dev/null
+++ b/sjdbmk/inspire_approve.py
@@ -0,0 +1,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")