mirror of
https://gitlab.com/jrmiller82/pathfinder-2-sqlite.git
synced 2026-10-12 22:29:44 -04:00
lessen output of spells.py
This commit is contained in:
1 parent
4d9b604bf2
commit
ea0f374d08
1 file changed
+4
-2
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user