From 8375dff5ceb1544767a6d91d6b9f336f5492b9af Mon Sep 17 00:00:00 2001 From: yu23ki14 Date: Mon, 5 Aug 2024 11:10:24 +0900 Subject: [PATCH] get env for etl setting --- etl/src/birdxplorer_etl/settings.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/etl/src/birdxplorer_etl/settings.py b/etl/src/birdxplorer_etl/settings.py index 30a4e6e..7a12c70 100644 --- a/etl/src/birdxplorer_etl/settings.py +++ b/etl/src/birdxplorer_etl/settings.py @@ -3,10 +3,12 @@ load_dotenv() -TARGET_TWITTER_POST_START_UNIX_MILLISECOND = 1717729500000 -TARGET_TWITTER_POST_END_UNIX_MILLISECOND = 1717729610000 +TARGET_TWITTER_POST_START_UNIX_MILLISECOND = int( + os.getenv("TARGET_TWITTER_POST_START_UNIX_MILLISECOND", "1717729500000") +) +TARGET_TWITTER_POST_END_UNIX_MILLISECOND = int(os.getenv("TARGET_TWITTER_POST_END_UNIX_MILLISECOND", "1717729610000")) # Extractで何日前のデータを最新と定義するか。開発中は3日前が楽。 -COMMUNITY_NOTE_DAYS_AGO = 3 +COMMUNITY_NOTE_DAYS_AGO = int(os.getenv("COMMUNITY_NOTE_DAYS_AGO", "3")) X_BEARER_TOKEN = os.getenv("X_BEARER_TOKEN")