Skip to content

Commit

Permalink
skip vacant legislators
Browse files Browse the repository at this point in the history
  • Loading branch information
twneale committed Sep 19, 2013
1 parent 3d5d7c6 commit a9bf613
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions openstates/ca/legislators.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ def scrape(self, chamber, term):
continue
if '[ Vacant ]' in legislator['full_name']:
continue
if 'Vacant ' in legislator['full_name']:
continue
fullname = legislator['full_name']
if not legislator['first_name'] and fullname.endswith('Vacant'):
continue
Expand Down Expand Up @@ -88,9 +90,6 @@ def parse_legislator(self, tr, term, chamber):
'address': parse_address,
}

if 'Vacant' in tr.text_content():
return

rubberstamp = lambda _: _
tr_xpath = tr.xpath
res = collections.defaultdict(list)
Expand Down

0 comments on commit a9bf613

Please sign in to comment.