Commit before vacuum

This commit is contained in:
shortcutme 2019-03-16 02:45:37 +01:00
parent 955164aa3c
commit b98a9d2e80
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -130,4 +130,5 @@ class ChartDb(Db):
{"date_added_limit": time.time() - 60 * 60 * 24 * 30 } {"date_added_limit": time.time() - 60 * 60 * 24 * 30 }
) )
if week_back > 1: if week_back > 1:
self.commit("vacuum")
self.execute("VACUUM") self.execute("VACUUM")