Skip to content

Commit

Permalink
NH: Fixed district parsing for senate districts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Lo committed May 11, 2016
1 parent c109638 commit 252f563
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openstates/nh/legislators.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ def _parse_legislators(self, chamber, term):
last_name = row['last_name']
full_name = '{} {} {}'.format(first_name, middle_name, last_name)
full_name = re.sub(r'[\s]{2,}', ' ', full_name)
district = '{} {}'.format(row['county'], int(row['district_no']))
district = '{} {}'.format(row['county'], int(row['district_no']))\
.strip()
party = NHLegislatorScraper.party_map[row['party']]
email = row['email'] or ''

Expand Down

0 comments on commit 252f563

Please sign in to comment.