1
0
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:
2016-07-26 16:25:38 +02:00
parent 000d5be73e
commit 798466f497

View File

@@ -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()