From 9bdebac916c6f074c251454cb28d338842ae5599 Mon Sep 17 00:00:00 2001 From: Moulberry Date: Wed, 18 Nov 2020 23:08:38 +1100 Subject: remove script --- script.py | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 script.py (limited to 'script.py') 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) -- cgit