File tree 1 file changed +4
-4
lines changed
google_symptoms/delphi_google_symptoms
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -78,10 +78,10 @@ def generate_num_export_days(params: Dict, logger) -> [int]:
78
78
79
79
if num_export_days is None and not custom_run :
80
80
# 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 ))]
85
85
86
86
if sensor_names .difference (set (gs_metadata .signal )):
87
87
# If any signal not in metadata yet, we need to backfill its full history.
You can’t perform that action at this time.
0 commit comments