From 798466f49747918e3313967c7273ad2e5461cbd4 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Tue, 26 Jul 2016 16:25:38 +0200 Subject: [PATCH] Fix for getting the right bookmark --- digimarks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/digimarks.py b/digimarks.py index 3da2a32..f2867d4 100644 --- a/digimarks.py +++ b/digimarks.py @@ -278,7 +278,7 @@ def updatebookmark(userkey, request, urlhash = None): return redirect(url_for('editbookmark', userkey=userkey, urlhash=bookmark.url_hash, message=message)) elif url: # 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 bookmark.modified_date = datetime.datetime.now()