diff options
Diffstat (limited to 'newspipe/web/views/bookmark.py')
-rw-r--r-- | newspipe/web/views/bookmark.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/newspipe/web/views/bookmark.py b/newspipe/web/views/bookmark.py index acfaa007..ccb2cbe0 100644 --- a/newspipe/web/views/bookmark.py +++ b/newspipe/web/views/bookmark.py @@ -40,7 +40,7 @@ from flask import ( from flask_babel import gettext from flask_login import current_user, login_required from flask_paginate import Pagination, get_page_args -from sqlalchemy import desc +from sqlalchemy import desc, text from werkzeug.exceptions import BadRequest from newspipe.bootstrap import db @@ -93,12 +93,10 @@ def list_(per_page, status="all"): filters["shared"] = True bookmarks = ( - BookmarkController(user_id).read(**filters).order_by(desc("time")).limit(1000) + BookmarkController(user_id).read_ordered(**filters).limit(1000) + # BookmarkController(user_id).read(**filters).limit(1000) ) - # tag_contr = BookmarkTagController(user_id) - # tag_contr.read().join(bookmarks).all() - page, per_page, offset = get_page_args() pagination = Pagination( page=page, |