Skip to content

Commit

Permalink
lowercasing jo_id everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolassaw committed Sep 21, 2024
1 parent 71e35a3 commit f813355
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/scraper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ def scrape_results_page(
base_url (str): The base URL for constructing full URLs.
search_url (str): The URL to request search results from.
hidden_values (Dict[str, str]): Dictionary of hidden input values.
JO_id (str): Judicial officer ID for searching.
jo_id (str): Judicial officer ID for searching.
date_string (str): Date string for searching.
session (requests.sessions.Session): The session object for making HTTP requests.
logger (logging.Logger): Logger instance for logging information.
Expand All @@ -572,7 +572,7 @@ def scrape_results_page(
url=search_url,
verification_text=verification_text,
logger=logger,
data=create_search_form_data(date_string, JO_id, hidden_values, odyssey_version),
data=create_search_form_data(date_string, jo_id, hidden_values, odyssey_version),
ms_wait=ms_wait,
)

Expand Down Expand Up @@ -607,11 +607,11 @@ def scrape_multiple_cases(
logger.error(f"Judicial officer {JO_name} not found on search page. Continuing.")
continue

JO_id = judicial_officer_to_ID[JO_name]
jo_id = judicial_officer_to_ID[JO_name]
logger.info(f"Searching cases on {date_string} for {JO_name}")

results_html, results_soup = self.scrape_results_page(
odyssey_version, base_url, search_url, hidden_values, JO_id, date_string, session, logger, ms_wait
odyssey_version, base_url, search_url, hidden_values, jo_id, date_string, session, logger, ms_wait
)

scraper_instance, scraper_function = self.get_class_and_method(county, logger)
Expand Down

0 comments on commit f813355

Please sign in to comment.