From: Oleg Broytman Date: Thu, 10 May 2018 21:15:00 +0000 (+0300) Subject: Fix(glst): Return counter after VACUUM X-Git-Tag: 0.1.1~9 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=5a8a39e2a30d52b96fc5913ee269dcbc2a69d099;p=m_librarian.git Fix(glst): Return counter after VACUUM --- diff --git a/m_librarian/glst.py b/m_librarian/glst.py index 5864d7f..6b2e090 100755 --- a/m_librarian/glst.py +++ b/m_librarian/glst.py @@ -54,10 +54,11 @@ def _import_glst(): def import_glst(): - return sqlhub.doInTransaction(_import_glst) + count_old, count_new = sqlhub.doInTransaction(_import_glst) connection = sqlhub.processConnection if connection.dbName == 'sqlite': connection.query("VACUUM") + return count_old, count_new def test():