From eb5ecb79cd40c95e1aa9c5a1a059f0cf6c0d2389 Mon Sep 17 00:00:00 2001 From: Tim Showers Date: Thu, 4 Aug 2016 14:01:01 -0400 Subject: [PATCH] Fix broken NY bill version urls --- openstates/ny/bills.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openstates/ny/bills.py b/openstates/ny/bills.py index 5ec63590c2..4d2cf97273 100644 --- a/openstates/ny/bills.py +++ b/openstates/ny/bills.py @@ -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