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
def v_user_list(): a_user = UserApi() l_users = a_user.list() return render_template('admin/user/list.html', users=l_users)