Skip to content

Commit

Permalink
yesterday datetime
Browse files Browse the repository at this point in the history
  • Loading branch information
laysabit committed Apr 17, 2024
1 parent 66ad112 commit a96ade1
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
@@ -1,6 +1,6 @@
from datetime import datetime, timedelta

import pendulum
#import pendulum
from airflow import DAG, settings
from airflow.models import DagBag, DagRun, TaskInstance, Variable
from airflow.operators.python_operator import PythonOperator
Expand All @@ -11,7 +11,7 @@

def compare_transforms_and_bq_rows():
# Try yesterday_ds again
yesterday = "{{ yesterday_ds }}"
yesterday = datetime.now() - timedelta(days=1)
# Get all the execution dates for the current date
# Get the session from the settings
session = settings.Session()
Expand Down

0 comments on commit a96ade1

Please sign in to comment.