]> git.phdru.name Git - xsetbg.git/blobdiff - xsetbg_db.py
Fix(DB): Fix column encoding
[xsetbg.git] / xsetbg_db.py
index 0ad9d048625dce5f00eea0ab0b2f67d56f5cc6b3..ba5ab6c7630cccbdd55cd717000d8ab111f207a4 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python3
 """XSetBg database
 
 """
@@ -49,9 +49,10 @@ class SQLiteMassInsert(object):
         return txn
 
     def __exit__(self, *args, **kw):
-        sqlhub.processConnection.commit()
+        sqlhub.processConnection.commit(close=True)
         connection = sqlhub.processConnection = self.connection
         connection.query("VACUUM")
+        connection.close()
 
 
 db_dirs = []