]> git.phdru.name Git - m_librarian.git/commitdiff
Fix(glst): Return counter after VACUUM
authorOleg Broytman <phd@phdru.name>
Thu, 10 May 2018 21:15:00 +0000 (00:15 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 10 May 2018 21:21:05 +0000 (00:21 +0300)
m_librarian/glst.py

index 5864d7f9687ab4a318b4d39ad20e1d72d7a1a7f3..6b2e0904157870d2de8c52298e31a64b736c3a0a 100755 (executable)
@@ -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():