Exemple #1
0
def accounts():
    log(log.INFO, '/accounts')
    ordered_accounts = Account.query.order_by(Account.id.desc()).all()
    return render_template(
        'index.html',
        main_content='Accounts',
        table_data=[acc.to_dict() for acc in ordered_accounts],
        columns=Account.columns(),
        edit_href=url_for('account.edit'))