Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WA: update end date, add empty to events, skip subjects #4677

Merged
merged 1 commit into from
Aug 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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