@profile.route("/group/<string:group_id>")
@login_required
def group_library(group_id):
    group = db.session.query(Group).filter(Group.id == group_id).first()
    if not group:
        abort(http.NOT_FOUND)

    group.is_group_member = group.is_member(current_user)
    group.is_admin_member = group.is_admin(current_user)

    session[current_user.username] = {"name": group.name, "id": str(group.id),
                                      "admin": group.is_admin_member}

    return render_template("group_library.jinja", group=group)
Return group library page.
dataset/ETHPy150Open eleme/polaris/polaris/views/profile.py/group_library