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")