def list_users(): ''' Check if listing request is over ''' users = BmajUser.list() for user in users: del user['_id'] del user['hashed_password'] return jsonify({'users': users})
def list_users(): ''' List users ''' users = BmajUser.list() for user in users: del user['_id'] del user['hashed_password'] return jsonify({'users': users})