fix #74; armor and armorgroup
parent
0221c6d8af
commit
857b967885
|
@ -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 (
|
||||
|
|
Loading…
Reference in New Issue