Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# This method will add a normalized person
# record to our members array
def _add_person_record(self, dict):
person = {
'id': self._get_id(dict),
'active': self._get_active(dict),
'lastName': self._get_last_name(dict),
'firstName': self._get_first_name(dict),
'middleName':self._get_middle_name(dict),
'gender': self._get_gender(dict),
'party': self._get_party(dict),
'council' : self._get_council(dict),
'electedDate': self._get_elected_date(dict),
'birthDate': self._get_birthdate(dict),
'maritalStatus': self._get_marital_status(dict),
'title': self._get_title(dict),
'statePostalCode': self._get_state_postal_code(dict),
'district': self._get_district(dict),
'zip': self._get_zip(dict),
'townName': self._get_town_name(dict)
}
self._members.append(person)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.