This commit is contained in:
Arun Prakash Jana 2019-01-01 22:10:23 +05:30
parent d994a51c38
commit 2ada8c7215
No known key found for this signature in database
GPG Key ID: A75979F35C080412

11
buku
View File

@ -1600,10 +1600,13 @@ class BukuDb:
print('No bookmarks deleted') print('No bookmarks deleted')
return False return False
self.cur.execute('DROP TABLE if exists bookmarks') if self.delete_rec_all():
self.conn.commit() self.cur.execute('VACUUM')
print('All bookmarks deleted') self.conn.commit()
return True print('All bookmarks deleted')
return True
else:
return False
def print_rec(self, index=0, low=0, high=0, is_range=False): def print_rec(self, index=0, low=0, high=0, is_range=False):
"""Print bookmark details at index or all bookmarks if index is 0. """Print bookmark details at index or all bookmarks if index is 0.