@bp.route('/', methods=['GET', 'POST'])
@require_staff
def dashboard():
    if request.method == 'POST':
        save_sidebar(request.form.get('content', None))
        return redirect(url_for('.dashboard'))

    page = force_int(request.args.get('page', 1), 0)
    if not page:
        return abort(404)

    sidebar = load_sidebar()
    paginator = Account.query.order_by(Account.id.desc()).paginate(page)
    return render_template(
        'admin/dashboard.html',
        paginator=paginator,
        sidebar=sidebar,
    )
calculate expected value of a function with respect to the distribution
dataset/ETHPy150Open pythoncn/june/june/handlers/admin.py/dashboard--crossover with--dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/sandbox/distributions/sppatch.py/expect_discrete