(team_id: int, people_ids: List[Any])
return persons, serialize_people(persons)
Get people from raw SQL results in data model and dict formats
Get people from raw SQL results in data model and dict formats
Get people from raw SQL results in data model and dict formats
def get_people(team_id: int, people_ids: List[Any]) -> Tuple[QuerySet[Person], List[SerializedPerson]]:
    """ Get people from raw SQL results in data model and dict formats """
    persons: QuerySet[Person] = Person.objects.filter(team_id=team_id, uuid__in=people_ids)
    return persons, serialize_people(persons)
def get_people ( team_id : int , people_ids : List [ Any ] ) -> Tuple [ QuerySet [ Person ] , List [ SerializedPerson ] ] : persons : QuerySet [ Person ] = Person . objects . filter ( team_id = team_id , uuid__in = people_ids ) return persons , serialize_people ( persons )