Commit f59fec1a authored by Jérome Perrin's avatar Jérome Perrin

collect: VACUUM after transaction

On python3.6 this raises:

 sqlite3.OperationalError: cannot VACUUM from within a transaction
parent 897b97aa
......@@ -286,6 +286,7 @@ class Database:
self._execute("VACUUM;")
self.commit()
self._execute("VACUUM;")
self.close()
def getDateScopeList(self, ignore_date=None, reported=0):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment