mirror of
https://github.com/alopexc0de/Simple-Bookmarking-Service.git
synced 2024-12-22 06:22:39 +00:00
ids need to be UUID objects
This commit is contained in:
parent
60a839a328
commit
e991b54c9d
@ -121,7 +121,7 @@ class API:
|
|||||||
everything about the bookmark
|
everything about the bookmark
|
||||||
"""
|
"""
|
||||||
response.content_type = self.response_type
|
response.content_type = self.response_type
|
||||||
bookmark = self.database.update_bookmark_title(bookmark_id, title)
|
bookmark = self.database.update_bookmark_title(UUID(bookmark_id), title)
|
||||||
|
|
||||||
if bookmark == None:
|
if bookmark == None:
|
||||||
return abort(404, "Provided bookmark doesn't exist or has been deleted")
|
return abort(404, "Provided bookmark doesn't exist or has been deleted")
|
||||||
@ -139,7 +139,7 @@ class API:
|
|||||||
everything about the bookmark
|
everything about the bookmark
|
||||||
"""
|
"""
|
||||||
response.content_type = self.response_type
|
response.content_type = self.response_type
|
||||||
bookmark = self.database.update_bookmark_uri(bookmark_id, uri)
|
bookmark = self.database.update_bookmark_uri(UUID(bookmark_id), uri)
|
||||||
|
|
||||||
if bookmark == None:
|
if bookmark == None:
|
||||||
return abort(404, "Provided bookmark doesn't exist or has been deleted")
|
return abort(404, "Provided bookmark doesn't exist or has been deleted")
|
||||||
|
Loading…
Reference in New Issue
Block a user