fix #74; armor and armorgroup

This commit is contained in:
jrmiller82 committed 2020-02-24 21:01:00 -06:00
1 parent 0221c6d8af
commit 857b967885
1 file changed
+5 -1
+5 -1
View File
@@ -247,7 +247,9 @@ def do_armor(data, conn):
except sqlite3.Error as e:
print("Error creating trait_armor entries: {}".format(e))
except:
print("Error creating trait_armor entries something other than sqlite3 error")
print(
"Error creating trait_armor entries something other than sqlite3 error"
)
else:
conn.commit()
@@ -306,6 +308,7 @@ INSERT INTO sourceentry_armorgroup (sourceentry_id, grp_id)
else:
conn.commit()
def link_sourceentry_armor(name, srcentrydata, conn):
stmt = """
INSERT INTO sourceentry_armor (sourceentry_id, armor_id)
@@ -328,6 +331,7 @@ INSERT INTO sourceentry_armor (sourceentry_id, armor_id)
else:
conn.commit()
def do_triggers(data, conn):
table = """
CREATE TABLE trigger (