mirror of
https://github.com/alopexc0de/Simple-Bookmarking-Service.git
synced 2024-12-22 06:22:39 +00:00
commit to database when deleting
This commit is contained in:
parent
1809278934
commit
b5a67b1216
@ -124,6 +124,7 @@ class Database:
|
|||||||
if self.get_bookmark(bookmark_id) != None:
|
if self.get_bookmark(bookmark_id) != None:
|
||||||
query = "DELETE FROM bookmarks WHERE bookmark_id = ?"
|
query = "DELETE FROM bookmarks WHERE bookmark_id = ?"
|
||||||
self.cursor.execute(query, (bookmark_id, ))
|
self.cursor.execute(query, (bookmark_id, ))
|
||||||
|
self.connection.commit()
|
||||||
|
|
||||||
if self.get_bookmark(bookmark_id) == None:
|
if self.get_bookmark(bookmark_id) == None:
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user