Skip to content

Commit

Permalink
defautl date for test
Browse files Browse the repository at this point in the history
  • Loading branch information
yu23ki14 committed Oct 25, 2024
1 parent 6da5141 commit 2add18a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion etl/src/birdxplorer_etl/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
load_dotenv()

default_start_time = int(datetime.combine(datetime.now() - timedelta(days=2), datetime.min.time()).timestamp() * 1000)
default_end_time = int(datetime.now().timestamp() * 1000)
default_end_time = int(
datetime.combine(datetime.now() - timedelta(days=1) - timedelta(hours=20), datetime.min.time()).timestamp() * 1000
)

TARGET_TWITTER_POST_START_UNIX_MILLISECOND = int(
os.getenv("TARGET_TWITTER_POST_START_UNIX_MILLISECOND", default_start_time)
Expand Down

0 comments on commit 2add18a

Please sign in to comment.