def _remove_unique_candidate(self, _request, current_decision, demand_list):
    for (demand_name, candidate_attr) in current_decision.decisions.items():
        candidate_uniqueness = candidate_attr.get('uniqueness')
        if (candidate_uniqueness and (candidate_uniqueness == 'true')):
            _request.demands[demand_name].resources.pop(candidate_attr.get('candidate_id'))
            for demand in demand_list:
                if (getattr(demand, 'name') == demand_name):
                    demand.resources = _request.demands[demand_name].resources
def _remove_unique_candidate(self, _request, current_decision, demand_list):
    for (demand_name, candidate_attr) in current_decision.decisions.items():
        candidate_uniqueness = candidate_attr.get('uniqueness')
        if (candidate_uniqueness and (candidate_uniqueness == 'true')):
            _request.demands[demand_name].resources.pop(candidate_attr.get('candidate_id'))
            for demand in demand_list:
                if (getattr(demand, 'name') == demand_name):
                    demand.resources = _request.demands[demand_name].resources