Skip to content

Commit

Permalink
moved after merged
Browse files Browse the repository at this point in the history
  • Loading branch information
aysim319 committed Sep 13, 2024
1 parent 76acc5c commit 4d6117f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions google_symptoms/delphi_google_symptoms/date_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ def generate_num_export_days(params: Dict, logger) -> [int]:

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

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

0 comments on commit 4d6117f

Please sign in to comment.