Add check in compactDB for number of records.

This commit is contained in:
Arun Prakash Jana 2016-04-25 02:13:00 +05:30
parent f4534992de
commit fbc8d25a89
No known key found for this signature in database
GPG Key ID: C0A712ED95043DCB

3
buku
View File

@ -561,6 +561,9 @@ def compactDB(conn, cur, index):
"""
cur.execute('SELECT MAX(id) from bookmarks')
if cur.rowcount < 1:
return
results = cur.fetchall()
for row in results:
if row[0] > index: