diff --git a/openstates/nm/__init__.py b/openstates/nm/__init__.py index 3e88b64ba1..454617fd65 100644 --- a/openstates/nm/__init__.py +++ b/openstates/nm/__init__.py @@ -39,7 +39,7 @@ 'name': '2015-2016', 'start_year': 2015, 'end_year': 2016, - 'sessions': ['2015', '2015S', '2016'], + 'sessions': ['2015', '2015S', '2016', '2016S'], } ], 'session_details': { @@ -86,6 +86,14 @@ 'slug': '16%20Regular', '_scraped_name': '2016 Regular', }, + '2016S': { + 'type': 'special', + 'start_date': datetime.date(2016, 9, 30), + 'end_date': datetime.date(2016, 10, 1), + 'display_name': '2016 2nd Special Session', + 'slug': '16%20Special', + '_scraped_name': '2016 2nd Special', + }, }, 'feature_flags': ['subjects', 'influenceexplorer'], '_ignored_scraped_sessions': [ diff --git a/openstates/nm/bills.py b/openstates/nm/bills.py index 6f2c3aac38..38ef284c70 100644 --- a/openstates/nm/bills.py +++ b/openstates/nm/bills.py @@ -97,8 +97,10 @@ class NMBillScraper(BillScraper): categorizer = Categorizer() def _init_mdb(self, session): + print session[2:] ftp_base = 'ftp://www.nmlegis.gov/other/' - fname = 'LegInfo{}'.format(session[2:]) + #session slug here? + fname = 'LegInfo{}'.format('16 Special') fname_re = '(\d{{2}}-\d{{2}}-\d{{2}} \d{{2}}:\d{{2}}(?:A|P)M) .* '\ '({fname}.*zip)'.format(fname=fname) @@ -114,7 +116,7 @@ def _init_mdb(self, session): remote_file = ftp_base + matches[-1][1] # all of the data is in this Access DB, download & retrieve it - mdbfile = '%s.mdb' % fname + mdbfile = '%s.accdb' % fname # if a new mdbfile or it has changed if getattr(self, 'mdbfile', None) != mdbfile: