@profile.route("/<string:username>")
@login_required
def dashboard_library(username=None):
    if username is None or username == current_user.username:
        user = current_user
    else:
        user = db.session.query(User).filter(User.username == username).first()
        if not user:
            abort(http.NOT_FOUND)

    session.pop(current_user.username, None)

    return render_template("library.jinja", name=user.username)
Return user dashboard library page.
dataset/ETHPy150Open eleme/polaris/polaris/views/profile.py/dashboard_library