aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoulberry <james.jenour@student.scotch.wa.edu.au>2020-11-18 23:08:38 +1100
committerMoulberry <james.jenour@student.scotch.wa.edu.au>2020-11-18 23:08:38 +1100
commit9bdebac916c6f074c251454cb28d338842ae5599 (patch)
treeec27c8afb5cf0a4ed3916626576163887fe4f524
parent83f603644e95884bd3b1f764192c4545fe45ee44 (diff)
downloadNotEnoughUpdates-REPO-9bdebac916c6f074c251454cb28d338842ae5599.tar.gz
NotEnoughUpdates-REPO-9bdebac916c6f074c251454cb28d338842ae5599.tar.bz2
NotEnoughUpdates-REPO-9bdebac916c6f074c251454cb28d338842ae5599.zip
remove script
-rw-r--r--script.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/script.py b/script.py
deleted file mode 100644
index 8a7c6fa4..00000000
--- a/script.py
+++ /dev/null
@@ -1,19 +0,0 @@
-import json, os
-
-parents = {}
-for itemJsonFileName in os.listdir("./items"):
- with open("./items/"+itemJsonFileName, "rb") as f:
- try:
- itemJson = json.load(f);
- except:
- print("BROKEN JSON:"+itemJsonFileName)
- if "parent" in itemJson:
- parent = itemJson["parent"]
- if not parent in parents:
- parents[parent] = []
- parents[parent].append(itemJson["internalname"])
-
-print(parents)
-
-with open("./parents.json", "w") as f:
- json.dump(parents, f, indent=4, sort_keys=True)