Skip to content

Commit

Permalink
WA: update end date, add empty to events, skip subjects
Browse files Browse the repository at this point in the history
  • Loading branch information
NewAgeAirbender committed Aug 9, 2023
1 parent d8e3e3b commit 1d4551a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions scrapers/wa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ class Washington(State):
"identifier": "2023-2024",
"name": "2023-2024 Regular Session",
"start_date": "2023-01-09",
# TODO: update end date
"end_date": "2023-04-25",
"end_date": "2023-04-23",
"active": True,
},
]
Expand Down
2 changes: 1 addition & 1 deletion scrapers/wa/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def scrape_chamber(self, chamber, session):
current = int(datetime.date.today().year)
max_year = year if current < year + 1 else year + 1
for y in (year, max_year):
self.build_subject_mapping(y)
# self.build_subject_mapping(y)
url = "%s/GetLegislationByYear?year=%s" % (self._base_url, y)

try:
Expand Down
3 changes: 3 additions & 0 deletions scrapers/wa/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import lxml

from openstates.scrape import Scraper, Event
from openstates.exceptions import EmptyScrape
from .utils import xpath


Expand Down Expand Up @@ -45,6 +46,8 @@ def scrape(self, chamber=None, session=None, start=None, end=None):
def get_xml(self, start, end):
if self.meetings is not None:
return self.meetings
else:
raise EmptyScrape

event_url = (
"http://wslwebservices.leg.wa.gov/CommitteeMeetingService.asmx"
Expand Down

0 comments on commit 1d4551a

Please sign in to comment.