From ea0f374d0811a66b1b8eb36dd5228c6ebec124fd Mon Sep 17 00:00:00 2001 From: James Miller Date: Wed, 14 Aug 2019 23:45:44 -0500 Subject: [PATCH] lessen output of spells.py --- data/third_party_json/spells.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/data/third_party_json/spells.py b/data/third_party_json/spells.py index 895a430..8d52b3d 100644 --- a/data/third_party_json/spells.py +++ b/data/third_party_json/spells.py @@ -8,7 +8,7 @@ def main(): with open('spells.json') as f: # raw_data = f.read() data = json.load(f) - print("Imported {} spells.".format(len(data))) + print("Importing {} spells.".format(len(data))) # alphabetize spells into a list sorted_names = [] for i in data: @@ -128,6 +128,8 @@ def main(): do_spell_targets(i,id,conn,ttypes) do_spell_actions(i,id,conn,acttypes) + print("Finished {} spells.".format(len(sorted_dicts))) + def do_spell_actions(i,id,conn,acttypes): if 'action' not in i: return @@ -289,7 +291,7 @@ def do_range_numbers(i, id, conn): def do_basic_sql(i, id, conn): - print("Doing spell id #{}: {}".format(id, i['name'])) + #print("Doing spell id #{}: {}".format(id, i['name'])) stmt = """INSERT INTO spells ( spells_id, sources_id,