Show count when full DB is exported

This commit is contained in:
Arun Prakash Jana 2018-08-28 06:18:05 +05:30
parent 8c991ae178
commit b3638d8c7e
No known key found for this signature in database
GPG Key ID: A75979F35C080412

View File

@ -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: