Skip to content

Commit

Permalink
Merge pull request #5171 from openstates/tx-votes-session-year-bug
Browse files Browse the repository at this point in the history
TX: votes: fix session year selection bug
  • Loading branch information
jessemortenson authored Jan 9, 2025
2 parents d7db6fd + b86a95e commit d3a2d67
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scrapers/tx/votes.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,15 +639,11 @@ def scrape_journal(self, url, chamber, session):
yield vote

def get_session_year(self, session):
if "R" in session:
session_num = session.strip("R")
else:
session_num = session
session_instance = next(
(
s
for s in self.jurisdiction.legislative_sessions
if s["identifier"] == session_num
if s["identifier"] == session or s["identifier"] == session.strip("R")
),
None,
)
Expand Down

0 comments on commit d3a2d67

Please sign in to comment.