Skip to content

Commit

Permalink
yesterday.strftime("%Y-%m-%d")
Browse files Browse the repository at this point in the history
  • Loading branch information
laysabit committed Apr 17, 2024
1 parent 37ead20 commit 31b8d5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dags/stellar_etl_airflow/test_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ def compare_transforms_and_bq_rows():

# # Query number of rows in BigQuery table
query_job = client.query(
"""SELECT
f"""SELECT
(SELECT COUNT(*) FROM crypto-stellar.crypto_stellar.history_ledgers
WHERE DATE(batch_run_date)='2020-04-16') AS count_public
WHERE DATE(batch_run_date)='{yesterday.strftime("%Y-%m-%d")}') AS count_public
"""
)
results = query_job.result()
Expand Down

0 comments on commit 31b8d5a

Please sign in to comment.