Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion sir_complainsalot/delphi_sir_complainsalot/check_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import pandas as pd

covidcast.covidcast._ASYNC_CALL = True # pylint: disable=protected-access
covidcast.covidcast.VALID_GEO_TYPES.add("hsa_nci") # workaround to use new geo_type w/ legacy client

@dataclass
class Complaint:
Expand Down Expand Up @@ -72,7 +73,7 @@ def check_source(data_source, meta, params, grace, logger): # pylint: disable=t
end_day=datetime.now().strftime("%Y-%m-%d"),
geo_type=row["geo_type"])

latest_data = covidcast.signal(
latest_data = covidcast.covidcast.signal(
data_source, row["signal"],
start_day=datetime.now() - timedelta(days = 14),
end_day=datetime.now(),
Expand Down