Untitled

 avatar
unknown
plain_text
a year ago
437 B
9
Indexable
    def filter_by_multiple_criteria(
        self, lista_emprego: List[Dict], criteria: Dict
    ) -> List[Dict]:
        resultado = []
        for emprego in lista_emprego:
            industry_match = emprego["industry"] == criteria["industry"]
            job_type_match = emprego["job_type"] == criteria["job_type"]
            if industry_match and job_type_match:
                resultado.append(emprego)
        return resultado
Editor is loading...
Leave a Comment