Skip to content

Commit

Permalink
Remove usage of PHP alias in the Python client
Browse files Browse the repository at this point in the history
  • Loading branch information
rzats committed Sep 22, 2023
1 parent 39c02fa commit 3666fa6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nowcast/delphi_nowcast/epidata.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ def get_indicator_data(sensors: List[SensorConfig],
all_combos = product(sensors, locations)
as_of_str = as_of.strftime("%Y%m%d")
all_params = [
{"source": "covidcast",
"data_source": sensor.source,
{"data_source": sensor.source,
"signals": sensor.signal,
"time_type": "day",
"geo_type": location.geo_type,
Expand All @@ -48,7 +47,7 @@ def get_indicator_data(sensors: List[SensorConfig],
"as_of": as_of_str}
for sensor, location in all_combos
]
responses = Epidata.async_epidata(all_params)
responses = Epidata.async_epidata("covidcast", all_params)
for response, params in responses:
# -2 = no results, 1 = success. Truncated data or server errors may lead to this Exception.
if response["result"] not in (-2, 1):
Expand Down

0 comments on commit 3666fa6

Please sign in to comment.