Skip to content

Commit

Permalink
Remove unneeded data check
Browse files Browse the repository at this point in the history
  • Loading branch information
tunetheweb committed Jan 16, 2025
1 parent 4564e73 commit 477d54f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sql/generate_reports.sh
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ else
if [[ $metric != crux* ]]; then # CrUX is quick and join is more compilicated so just do a full run of that
date_join="date > CAST(REPLACE(\"$max_date\",\"_\",\"-\") AS DATE)"
# Skip 2022_05_12 tables
date_join="${date_join} AND date != \"2022-05-12\""
date_join="${date_join}"
if [[ -n "$YYYY_MM_DD" ]]; then
# If a date is given, then only run up until then (in case next month is mid run as do not wanna get just desktop data)
date_join="${date_join} AND date <= \"$DATE\""
Expand All @@ -291,7 +291,7 @@ else
# If a date is given, then only run up until then (in case next month is mid run as do not wanna get just desktop data)
date_join="date <= \"$DATE\""
# Skip 2022_05_12 tables
date_join="${date_join} AND date != \"2022-05-12\""
date_join="${date_join}"
fi

echo -e "Force Mode=${FORCE}. Generating $gs_lens_dir$metric timeseries from start until ${YYYY_MM_DD}."
Expand All @@ -301,7 +301,7 @@ else
if [[ $metric != crux* ]]; then # CrUX is quick and join is more compilicated so just do a full run of that
date_join="date <= \"$DATE\""
# Skip 2022_05_12 tables
date_join="${date_join} AND date != \"2022-05-12\""
date_join="${date_join}"
fi

echo -e "Timeseries does not exist. Generating $gs_lens_dir$metric timeseries from start until ${YYYY_MM_DD}"
Expand Down

0 comments on commit 477d54f

Please sign in to comment.