Skip to content

Commit 4d6117f

Browse files
committed
moved after merged
1 parent 76acc5c commit 4d6117f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

google_symptoms/delphi_google_symptoms/date_utils.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ def generate_num_export_days(params: Dict, logger) -> [int]:
7878

7979
if num_export_days is None and not custom_run:
8080
# Fetch metadata to check how recent each signal is
81-
covidcast.use_api_key(params["indicator"]["api_credentials"])
82-
metadata = covidcast.metadata()
83-
# Filter to only those signals we currently want to produce for `google-symptoms`
84-
gs_metadata = metadata[(metadata.data_source == "google-symptoms") & (metadata.signal.isin(sensor_names))]
81+
metadata = Epidata.covidcast_meta()
82+
# Filter to only those we currently want to produce, ignore any old or deprecated signals
83+
gs_metadata = metadata[(metadata.data_source == "google-symptoms") &
84+
(metadata.signal.isin(sensor_names))]
8585

8686
if sensor_names.difference(set(gs_metadata.signal)):
8787
# If any signal not in metadata yet, we need to backfill its full history.

0 commit comments

Comments
 (0)