From 4ccb68c60fdbfc9825d8fc2d8ecfdcdb39dbb625 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sun, 11 Jun 2017 23:35:16 +0200 Subject: test tag for bookmarks --- src/web/views/bookmark.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/web/views/bookmark.py b/src/web/views/bookmark.py index c80c9fdd..18098d83 100644 --- a/src/web/views/bookmark.py +++ b/src/web/views/bookmark.py @@ -43,6 +43,7 @@ from lib.data import import_pinboard_json from bootstrap import db from web.forms import BookmarkForm from web.controllers import BookmarkController, BookmarkTagController +from web.models import BookmarkTag logger = logging.getLogger(__name__) bookmarks_bp = Blueprint('bookmarks', __name__, url_prefix='/bookmarks') @@ -93,6 +94,9 @@ def list_(per_page, status='all'): .read(**filters) \ .order_by(desc('time')) + #tag_contr = BookmarkTagController(user_id) + #tag_contr.read().join(bookmarks).all() + page, per_page, offset = get_page_args() pagination = Pagination(page=page, total=bookmarks.count(), css_framework='bootstrap3', -- cgit