Untitled
unknown
plain_text
2 years ago
437 B
10
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 resultadoEditor is loading...
Leave a Comment