Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

NY: added companion bills with new api

  • Loading branch information...
commit 68880d8c2c76e9975db94280e583f5a426746921 1 parent b014c17
Thom Neale authored

Showing 1 changed file with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. 3  openstates/ny/bills.py
3  openstates/ny/bills.py
@@ -269,10 +269,9 @@ def scrape_versions(self, bill, page, url):
269 269
             _, same_as_text = same_as_text.split('Same as:')
270 270
             same_as_numbers = re.findall(id_rgx, same_as_text)
271 271
 
272  
-            bill['companion_bill_ids'] = []
273 272
             for same_as_number in same_as_numbers:
274 273
                 same_as_number_noyear, _ = same_as_number.rsplit('-')
275  
-                bill['companion_bill_ids'].append(same_as_number_noyear)
  274
+                bill.add_companion(same_as_number_noyear)
276 275
 
277 276
         else:
278 277
             version_text = text

0 notes on commit 68880d8

Please sign in to comment.
Something went wrong with that request. Please try again.