From b3638d8c7e2674c807f7b91b54d08abf0a1895b9 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Tue, 28 Aug 2018 06:18:05 +0530 Subject: [PATCH] Show count when full DB is exported --- buku.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/buku.py b/buku.py index 5f760b9..54e3ba8 100755 --- a/buku.py +++ b/buku.py @@ -1961,9 +1961,13 @@ class BukuDb: qry = 'INSERT INTO bookmarks(URL, metadata, tags, desc, flags) VALUES (?, ?, ?, ?, ?)' for row in resultset: outdb.cur.execute(qry, (row[1], row[2], row[3], row[4], row[5])) - outdb.conn.commit() outdb.close() + + count = self.get_max_id() + if count == -1: + count = 0 + print('%s exported' % count) return True try: