Skip to content

Commit a7443df

Browse files
authored
Merge pull request #1758 from cmu-delphi/fluview_url_change
updated fluview endpoints
2 parents 0e24635 + ea58dd7 commit a7443df

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/acquisition/fluview/fluview.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def fetch_metadata(sess):
7070
Return metadata indicating the current issue and also numeric constants
7171
representing the various locations.
7272
"""
73-
url = "https://gis.cdc.gov/grasp/flu2/GetPhase02InitApp?appVersion=Public"
73+
url = "https://gis.cdc.gov/flu2/GetPhase02InitApp?appVersion=Public"
7474
resp = sess.get(url)
7575
check_status(resp, 200, "application/json")
7676
return resp.json()
@@ -143,7 +143,7 @@ def get_entry(num, name=None):
143143
return {"ID": num, "Name": (name if name else num)}
144144

145145
# download the data (in memory)
146-
url = "https://gis.cdc.gov/grasp/flu2/PostPhase02DataDownload"
146+
url = "https://gis.cdc.gov/flu2/PostPhase02DataDownload"
147147
data = {
148148
"AppVersion": "Public",
149149
"DatasourceDT": [get_entry(1, "ILINet"), get_entry(0, "WHO_NREVSS")],

src/acquisition/fluview/fluview_locations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
# These keys come from CDC's metadata object, which is currently returned in a
1414
# JSON response from:
15-
# https://gis.cdc.gov/grasp/flu2/GetPhase02InitApp?appVersion=Public
15+
# https://gis.cdc.gov/flu2/GetPhase02InitApp?appVersion=Public
1616
# The values are used in queries of Delphi's Epidata API.
1717
cdc_to_delphi = {
1818
"national": {

0 commit comments

Comments
 (0)