mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-06 23:05:10 +01:00
Fix for json response of single bookmark
This commit is contained in:
@@ -261,8 +261,8 @@ def bookmarks(userkey, sortmethod = None):
|
|||||||
@app.route('/<userkey>/<urlhash>/json')
|
@app.route('/<userkey>/<urlhash>/json')
|
||||||
def viewbookmarkjson(userkey, urlhash):
|
def viewbookmarkjson(userkey, urlhash):
|
||||||
""" Serialise bookmark to json """
|
""" Serialise bookmark to json """
|
||||||
bookmark = Bookmark.select(Bookmark.url_hash == urlhash, Bookmark.userkey == userkey, Bookmark.status == Bookmark.VISIBLE)
|
bookmark = Bookmark.select(Bookmark.url_hash == urlhash, Bookmark.userkey == userkey, Bookmark.status == Bookmark.VISIBLE)[0]
|
||||||
return bookmark.to_dict()
|
return jsonify(bookmark.to_dict())
|
||||||
|
|
||||||
|
|
||||||
@app.route('/<userkey>/<urlhash>')
|
@app.route('/<userkey>/<urlhash>')
|
||||||
|
|||||||
Reference in New Issue
Block a user