Skip to content

Commit

Permalink
Merge pull request openstates#1143 from showerst/ny-bill-urls
Browse files Browse the repository at this point in the history
Fix broken NY bill version urls
  • Loading branch information
Andy Lo authored Aug 10, 2016
2 parents bc75dec + eb5ecb7 commit 83ae8ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openstates/ny/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,12 @@ def _scrape_bill(self, session, bill_data):
html_version = version + ' HTML'
html_url = 'http://assembly.state.ny.us/leg/?sh=printbill&bn='\
'{}&term={}'.format(bill_id, self.term_start_year)
bill.add_version(html_version, html_version, mimetype='text/html')
bill.add_version(html_version, html_url, on_duplicate='use_new', mimetype='text/html')

pdf_version = version + ' PDF'
pdf_url = 'http://legislation.nysenate.gov/pdf/bills/{}/{}'\
.format(self.term_start_year, bill_id)
bill.add_version(pdf_version, pdf_version,
bill.add_version(pdf_version, pdf_url, on_duplicate='use_new',
mimetype='application/pdf')

# Handling of sources follows. Sources serving either chamber
Expand Down

0 comments on commit 83ae8ab

Please sign in to comment.