commit to database when deleting

This commit is contained in:
David Todd 2020-01-18 21:52:33 -06:00
parent 1809278934
commit b5a67b1216

View File

@ -124,6 +124,7 @@ class Database:
if self.get_bookmark(bookmark_id) != None:
query = "DELETE FROM bookmarks WHERE bookmark_id = ?"
self.cursor.execute(query, (bookmark_id, ))
self.connection.commit()
if self.get_bookmark(bookmark_id) == None:
return True