From: Oleg Broytman Date: Mon, 24 Oct 2016 11:33:53 +0000 (+0300) Subject: Fix VACUUM command X-Git-Tag: 5.1.0~28 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=a4ad85691c6a53f6faf53bc64a7a0a1c32515cd5;p=xsetbg.git Fix VACUUM command SQLite doesn't vacuum a single table but the entire database. --- diff --git a/xsetbg_db.py b/xsetbg_db.py index 53e0e3c..35840cc 100755 --- a/xsetbg_db.py +++ b/xsetbg_db.py @@ -49,7 +49,7 @@ class SQLiteMassInsert(object): def __exit__(self, *args, **kw): sqlhub.processConnection.commit() connection = sqlhub.processConnection = self.connection - connection.query("VACUUM %s" % xsetbg_db.sqlmeta.table) + connection.query("VACUUM") db_dirs = []