opencivicdata / scrapers-us-municipal

Scrapers for US municipal governments.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

All Metro board members are named Phil Washington πŸ™€

hancush opened this issue Β· comments

In the Metro person scraper, we use the office dict from a previous loop to set the office record given and family names.

for office in self.body_offices(board_of_directors):
terms[office['OfficeRecordFullName']].append(office)
members = {}
for member, offices in terms.items():
p = Person(member)
p.family_name = office['OfficeRecordLastName']
p.given_name = office['OfficeRecordFirstName']

The result is that everyone has given and family name values of Phil and Washington, respectively. Luckily, we're getting the display name from the member dict, so this isn't a visible problem, but it is blocking Metro-Records/la-metro-councilmatic#481.