Skip to content

Commit

Permalink
Merge pull request #1081 from cliftonmcintosh/nm-bills-new-site
Browse files Browse the repository at this point in the history
NM: reference NM legislature's new site in bill scraping
  • Loading branch information
Andy Lo committed Apr 8, 2016
2 parents 566e7a1 + ef6e7a6 commit f2e4be5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions openstates/nm/bills.py
Expand Up @@ -183,8 +183,8 @@ def scrape(self, chamber, session):
"LegNo", "SessionYear"]})

bill.add_source(
'http://www.nmlegis.gov/lcs/legislation.aspx?Chamber='
"{Chamber}&LegType={LegType}&LegNo={LegNo}"
'http://www.nmlegis.gov:8080/Legislation/Legislation?chamber='
"{Chamber}&legType={LegType}&legNo={LegNo}"
"&year={SessionYear}".format(**data))

bill.add_sponsor('primary', sponsor_map[data['SponsorCode']])
Expand Down Expand Up @@ -262,7 +262,7 @@ def scrape_actions(self, chamber_letter):
com_location_map[loc['LocationCode']] = loc['LocationDesc']

# combination of tblActions and
# http://www.nmlegis.gov/lcs/action_abbreviations.aspx
# http://www.nmlegis.gov:8080/Legislation/Action_Abbreviations
# table will break when new actions are encountered
action_map = {
# committee results
Expand Down Expand Up @@ -355,8 +355,8 @@ def scrape_actions(self, chamber_letter):
continue

# ok the whole Day situation is madness, N:M mapping to real days
# see http://www.nmlegis.gov/lcs/lcsdocs/legis_day_chart_11.pdf
# first idea was to look at all Days and use the first occurance's
# see http://www.nmlegis.gov/lcs/lcsdocs/legis_day_chart_16.pdf
# first idea was to look at all Days and use the first occurrence's
# timestamp, but this is sometimes off by quite a bit
# instead lets just use EntryDate and take radical the position
# something hasn't happened until it is observed
Expand Down

0 comments on commit f2e4be5

Please sign in to comment.