Ejemplo n.º 1
0
def overview_users():
    if not authenticator.is_authenticated():
        return redirect(url_for('sign_in'))

    users = mymanage.get_users_by_user(session['username'])

    return render_template('overview_users.html', users=users)
Ejemplo n.º 2
0
def overview():
    if not authenticator.is_authenticated():
        return redirect(url_for('sign_in'))

    databases = mymanage.get_databases_by_user(session['username'])
    users = mymanage.get_users_by_user(session['username'])

    database_size = {}

    for database in databases:
        database_size[database.name] = mymanage.get_database_size(database.name)

    return render_template('overview.html', databases=databases, sizes=database_size, users=users)