diff --git a/src/acquisition/rvdss/constants.py b/src/acquisition/rvdss/constants.py index f06f70f05..c8e9daf72 100644 --- a/src/acquisition/rvdss/constants.py +++ b/src/acquisition/rvdss/constants.py @@ -73,7 +73,7 @@ "https://www.canada.ca/en/public-health/services/surveillance/respiratory-virus-detections-canada/2022-2023.html", "https://www.canada.ca/en/public-health/services/surveillance/respiratory-virus-detections-canada/2023-2024.html"] -ALTENRATIVE_SEASON_BASE_URL = "www.phac-aspc.gc.ca/bid-bmi/dsd-dsm/rvdi-divr/" +ALTERNATIVE_SEASON_BASE_URL = "www.phac-aspc.gc.ca/bid-bmi/dsd-dsm/rvdi-divr/" SEASON_BASE_URL = "https://www.canada.ca" diff --git a/src/acquisition/rvdss/rvdss_historic.py b/src/acquisition/rvdss/rvdss_historic.py index f253fd0fe..4400c9ad8 100644 --- a/src/acquisition/rvdss/rvdss_historic.py +++ b/src/acquisition/rvdss/rvdss_historic.py @@ -6,7 +6,7 @@ from datetime import datetime,timedelta import math -from constants import DASHBOARD_BASE_URLS_2023, HISTORIC_SEASON_URL, ALTENRATIVE_SEASON_BASE_URL, SEASON_BASE_URL, LAST_WEEK_OF_YEAR +from constants import DASHBOARD_BASE_URLS_2023, HISTORIC_SEASON_URL, ALTERNATIVE_SEASON_BASE_URL, SEASON_BASE_URL, LAST_WEEK_OF_YEAR from utils import abbreviate_virus,abbreviate_geo,create_geo_types,check_date_format,get_revised_data,get_weekly_data #%% Functions @@ -37,7 +37,7 @@ def report_urls(soup): # Get links for individual weeks year= "-".join(get_report_season(soup)) links=soup.find_all('a') - alternative_url = ALTENRATIVE_SEASON_BASE_URL+year + alternative_url = ALTERNATIVE_SEASON_BASE_URL+year urls = [link.get("href") for link in links if "ending" in str(link) or alternative_url in str(link)]