Skip to content

Commit

Permalink
Add backward compatible check for snapshot results
Browse files Browse the repository at this point in the history
Change-Id: I390438720a9568243dc2410d23fb396b4a923aac
  • Loading branch information
AVMarkin committed Sep 12, 2024
1 parent ba65bf7 commit e7307f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/scripts/backfill_snapshots.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def _get_bid_budget_snapshot_dates(
)
""",
)
if not result:
if result is None or (isinstance(result, pd.DataFrame) and result.empty):
today = datetime.datetime.today()
end_date = today - datetime.timedelta(days=1)
start_date = today - datetime.timedelta(days=28)
Expand Down

0 comments on commit e7307f7

Please sign in to comment.