Show count when full DB is exported
This commit is contained in:
parent
8c991ae178
commit
b3638d8c7e
6
buku.py
6
buku.py
@ -1961,9 +1961,13 @@ class BukuDb:
|
|||||||
qry = 'INSERT INTO bookmarks(URL, metadata, tags, desc, flags) VALUES (?, ?, ?, ?, ?)'
|
qry = 'INSERT INTO bookmarks(URL, metadata, tags, desc, flags) VALUES (?, ?, ?, ?, ?)'
|
||||||
for row in resultset:
|
for row in resultset:
|
||||||
outdb.cur.execute(qry, (row[1], row[2], row[3], row[4], row[5]))
|
outdb.cur.execute(qry, (row[1], row[2], row[3], row[4], row[5]))
|
||||||
|
|
||||||
outdb.conn.commit()
|
outdb.conn.commit()
|
||||||
outdb.close()
|
outdb.close()
|
||||||
|
|
||||||
|
count = self.get_max_id()
|
||||||
|
if count == -1:
|
||||||
|
count = 0
|
||||||
|
print('%s exported' % count)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user