def get_all_users(show_teachers=False):

    db = api.common.get_conn()

    match = {}
    projection = {"uid": 1, "username": 1, "email": 1, "tid": 1}

    if not show_teachers:
        match.update({"teacher": False})
        projection.update({"teacher": 1})

    return list(db.users.find(match, projection))
If a dataset with the given name is created while the
dataset/ETHPy150Open IceCTF/ctf-platform/api/api/user.py/get_all_users--crossover with--dataset/ETHPy150Open ClusterHQ/flocker/flocker/dockerplugin/test/test_api.py/APITestsMixin.test_create_duplicate_name_race_condition