From 8598915c56882240cebef4a68fde0fb9a37a1fe7 Mon Sep 17 00:00:00 2001 From: Stefano Rivera Date: Sat, 17 May 2014 22:14:33 +0200 Subject: [PATCH] Strip underscory stuff from JSON --- tools/gen_json.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/gen_json.py b/tools/gen_json.py index e3468cd..c274f9c 100755 --- a/tools/gen_json.py +++ b/tools/gen_json.py @@ -29,6 +29,12 @@ def convert_to_json(directory, update=True): import yaml with open(yaml_path) as yaml_f: obj = yaml.safe_load(yaml_f) + + # These old objects, referenced in cards + for k in obj.keys(): + if k.startswith('_'): + del obj[k] + with open(json_path, 'w') as json_f: json.dump(obj, json_f, indent=2) -- 2.34.1