Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
cchuong committed Sep 18, 2024
1 parent 8814554 commit d7905c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/acquisition/rvdss/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions src/acquisition/rvdss/rvdss_historic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)]
Expand Down

0 comments on commit d7905c8

Please sign in to comment.