Skip to content

Commit

Permalink
Fix #346
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Jan 1, 2019
1 parent d994a51 commit 2ada8c7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions buku
Original file line number Diff line number Diff line change
Expand Up @@ -1600,10 +1600,13 @@ class BukuDb:
print('No bookmarks deleted')
return False

self.cur.execute('DROP TABLE if exists bookmarks')
self.conn.commit()
print('All bookmarks deleted')
return True
if self.delete_rec_all():
self.cur.execute('VACUUM')
self.conn.commit()
print('All bookmarks deleted')
return True
else:
return 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.
Expand Down

0 comments on commit 2ada8c7

Please sign in to comment.