Skip to content

Commit

Permalink
GA remove district from vote names by splitting on last comma. Names …
Browse files Browse the repository at this point in the history
…are structure like "John, Jr., 55th".

This fixes the naming issue in ga noted in openstates#1397. This fixes openstates#1360.
  • Loading branch information
mshenfield committed Mar 15, 2017
1 parent 63ede99 commit 7afda49
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openstates/ga/bills.py
Expand Up @@ -190,7 +190,9 @@ def scrape(self, session, chambers):
m = methods[how]
except KeyError:
m = vote.other
m(whom['Name'])
# Expecting 'Name's like "John Reilly, Jr., 55th"
last_name, district = whom['Name'].rsplit(', ', 1)
m(last_name.strip())

bill.add_vote(vote)

Expand Down

0 comments on commit 7afda49

Please sign in to comment.