from beavy.utils import fallbackRender, as_page
from beavy.blueprints import users as users_bp
from sqlalchemy.orm import subqueryload

from beavy.models.object import Object
from .models import Like
from .schemas import user_likes_paged


@users_bp.route("/<user:user>/likes/")
@fallbackRender('user_likes.html')
def user_likes(user):
    print(user)
    return user_likes_paged.dump(as_page(
        Like.query
            .filter(Like.subject_id == user.id)
            .filter_visible(Like.object_id, Object.id)
            .options(subqueryload(Like.object)),
        error_out=False))

@@ -333,24 +333,8 @@
 r):%0A
-    print(user)%0A
     

Remove print