From 859b50b036a8031da257605d6d9e0490d8742597 Mon Sep 17 00:00:00 2001 From: Mischa Untaga <99098079+MischaU8@users.noreply.github.com> Date: Sat, 4 Nov 2023 20:08:34 +0100 Subject: events boilerplate with comments --- tools/gencards.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools') diff --git a/tools/gencards.py b/tools/gencards.py index d4461ff..87fd401 100644 --- a/tools/gencards.py +++ b/tools/gencards.py @@ -35,6 +35,8 @@ def flush(): cards.append(output) + # print("CARD {} - {}\n# {}\n".format(output['id'], output['title'], output['text'])) + # Reset card attributes for the next entry card['title'] = "" card['text'] = [] @@ -45,6 +47,7 @@ def read_cards(_card_type): card['type'] = _card_type card['era'] = "" filename = file_format.format(_card_type) + # print("# {} Cards\n".format(_card_type.title())) with open(filename) as fp: for line in fp: -- cgit v1.2.3