Skip to content

Commit e503e97

Browse files
committed
Add testdata of historic reports
1 parent 6353b18 commit e503e97

File tree

7 files changed

+4459
-10
lines changed

7 files changed

+4459
-10
lines changed

src/acquisition/rvdss/pull_historic.py

+8-3
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,16 @@ def add_https_prefix(urls):
4444
for i in range(len(urls)):
4545
temp_url = urls[i]
4646

47+
https_present = re.search("https:",temp_url)
4748
http_present = re.search("http:",temp_url)
48-
if not http_present:
49-
urls[i]=SEASON_BASE_URL+temp_url
49+
50+
if not https_present:
51+
if not http_present:
52+
urls[i]=SEASON_BASE_URL+temp_url
53+
else:
54+
urls[i]=re.sub("http:","https:",temp_url)
5055
else:
51-
urls[i]=re.sub("http:","https:",temp_url)
56+
urls[i]=temp_url
5257
return(urls)
5358

5459
def construct_weekly_report_urls(soup):

src/acquisition/rvdss/utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
DASHBOARD_UPDATE_DATE_FILE, DASHBOARD_DATA_FILE
1414
)
1515

16+
#%% Functions
1617
def abbreviate_virus(full_name):
1718
"""Abbreviate viruses and make them lowercase """
1819

testdata/acquisition/rvdss/main_page_20162017.html

+3
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)