From 4479d32ffaed84c91928b5663483f9b51520d5cd Mon Sep 17 00:00:00 2001 From: Ross Spencer Date: Sun, 3 Sep 2023 17:13:10 +0200 Subject: [PATCH] Intentionally commit DBMD table Table may not be written to without commit and so we intentionally commit it here. --- src/sqlitefid/sqlitefid.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sqlitefid/sqlitefid.py b/src/sqlitefid/sqlitefid.py index 76ecca9..24e5486 100755 --- a/src/sqlitefid/sqlitefid.py +++ b/src/sqlitefid/sqlitefid.py @@ -68,6 +68,7 @@ def handleDROIDCSV(droidcsv, BOM=False, in_memory=False): loader = DROIDLoader(basedb, BOM, debug=debug) loader.create_droid_database(droidcsv, basedb.getcursor()) basedb.createDBMD() + basedb.conn.commit() return basedb.conn @@ -81,6 +82,7 @@ def handleSFYAML(sfexport, in_memory=False): loader = SFLoader(basedb) loader.create_sf_database(sfexport, basedb.getcursor()) basedb.createDBMD() + basedb.conn.commit() return basedb.conn