fix #74; armor and armorgroup
parent
0221c6d8af
commit
857b967885
|
@ -247,7 +247,9 @@ def do_armor(data, conn):
|
||||||
except sqlite3.Error as e:
|
except sqlite3.Error as e:
|
||||||
print("Error creating trait_armor entries: {}".format(e))
|
print("Error creating trait_armor entries: {}".format(e))
|
||||||
except:
|
except:
|
||||||
print("Error creating trait_armor entries something other than sqlite3 error")
|
print(
|
||||||
|
"Error creating trait_armor entries something other than sqlite3 error"
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
conn.commit()
|
conn.commit()
|
||||||
|
|
||||||
|
@ -306,6 +308,7 @@ INSERT INTO sourceentry_armorgroup (sourceentry_id, grp_id)
|
||||||
else:
|
else:
|
||||||
conn.commit()
|
conn.commit()
|
||||||
|
|
||||||
|
|
||||||
def link_sourceentry_armor(name, srcentrydata, conn):
|
def link_sourceentry_armor(name, srcentrydata, conn):
|
||||||
stmt = """
|
stmt = """
|
||||||
INSERT INTO sourceentry_armor (sourceentry_id, armor_id)
|
INSERT INTO sourceentry_armor (sourceentry_id, armor_id)
|
||||||
|
@ -328,6 +331,7 @@ INSERT INTO sourceentry_armor (sourceentry_id, armor_id)
|
||||||
else:
|
else:
|
||||||
conn.commit()
|
conn.commit()
|
||||||
|
|
||||||
|
|
||||||
def do_triggers(data, conn):
|
def do_triggers(data, conn):
|
||||||
table = """
|
table = """
|
||||||
CREATE TABLE trigger (
|
CREATE TABLE trigger (
|
||||||
|
|
Loading…
Reference in New Issue