mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-06 23:05:10 +01:00
Fix for getting the right bookmark
This commit is contained in:
@@ -278,7 +278,7 @@ def updatebookmark(userkey, request, urlhash = None):
|
|||||||
return redirect(url_for('editbookmark', userkey=userkey, urlhash=bookmark.url_hash, message=message))
|
return redirect(url_for('editbookmark', userkey=userkey, urlhash=bookmark.url_hash, message=message))
|
||||||
elif url:
|
elif url:
|
||||||
# Existing bookmark, get from DB
|
# Existing bookmark, get from DB
|
||||||
bookmark = Bookmark.get(userkey == userkey, Bookmark.url_hash == urlhash)
|
bookmark = Bookmark.get(Bookmark.userkey == userkey, Bookmark.url_hash == urlhash)
|
||||||
# Editing this bookmark, set modified_date to now
|
# Editing this bookmark, set modified_date to now
|
||||||
bookmark.modified_date = datetime.datetime.now()
|
bookmark.modified_date = datetime.datetime.now()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user