mirror of
https://gitlab.com/jrmiller82/pathfinder-2-sqlite.git
synced 2026-10-12 22:29:44 -04:00
fix #74; armor and armorgroup
This commit is contained in:
1 parent
0221c6d8af
commit
857b967885
1 file changed
+5
-1
+5
-1
@@ -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 (
|
||||
|
||||
Reference in new issue
Block a user