diff --git a/digimarks.py b/digimarks.py index 93b32b0..33e7381 100644 --- a/digimarks.py +++ b/digimarks.py @@ -201,8 +201,9 @@ def index(): @app.route('/', methods=['GET', 'POST']) -def bookmarks(userkey): - """ User homepage, list their (unfiltered) bookmarks """ +@app.route('//sort/', methods=['GET', 'POST']) +def bookmarks(userkey, sortmethod = None): + """ User homepage, list their bookmarks, optionally filtered and/or sorted """ #return object_list('bookmarks.html', Bookmark.select()) #user = User.select(key=userkey) #if user: