Skip to content

Commit 3666fa6

Browse files
committed
Remove usage of PHP alias in the Python client
1 parent 39c02fa commit 3666fa6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

nowcast/delphi_nowcast/epidata.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ def get_indicator_data(sensors: List[SensorConfig],
3838
all_combos = product(sensors, locations)
3939
as_of_str = as_of.strftime("%Y%m%d")
4040
all_params = [
41-
{"source": "covidcast",
42-
"data_source": sensor.source,
41+
{"data_source": sensor.source,
4342
"signals": sensor.signal,
4443
"time_type": "day",
4544
"geo_type": location.geo_type,
@@ -48,7 +47,7 @@ def get_indicator_data(sensors: List[SensorConfig],
4847
"as_of": as_of_str}
4948
for sensor, location in all_combos
5049
]
51-
responses = Epidata.async_epidata(all_params)
50+
responses = Epidata.async_epidata("covidcast", all_params)
5251
for response, params in responses:
5352
# -2 = no results, 1 = success. Truncated data or server errors may lead to this Exception.
5453
if response["result"] not in (-2, 1):

0 commit comments

Comments
 (0)