Esempio n. 1
0
def check_has_admin():
    """
    If there are no users, this is the first run of the application.
    :return:
    """
    user_api = UserApi()
    if len(user_api.list()) > 0:
        return True
    else:
        return False
Esempio n. 2
0
def v_user_list():
    a_user = UserApi()
    l_users = a_user.list()
    return render_template('admin/user/list.html', users=l_users)