Skip to content

Commit

Permalink
Merge pull request #2948 from openstates/tim/2019/mi-sponsors
Browse files Browse the repository at this point in the history
MI: Stop adding district numbers as sponsors
  • Loading branch information
showerst committed Mar 29, 2019
2 parents e47ea9d + f10a98a commit f670383
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openstates/mi/bills.py
Expand Up @@ -87,6 +87,10 @@ def scrape_bill(self, chamber, session, bill_id):
sponsors = doc.xpath('//span[@id="frg_billstatus_SponsorList"]/a')
for sponsor in sponsors:
name = sponsor.text.replace(u'\xa0', ' ')
# sometimes district gets added as a link
if name.isnumeric():
continue

if len(sponsors) > 1:
classification = (
'primary'
Expand Down

0 comments on commit f670383

Please sign in to comment.