Skip to content

Commit

Permalink
get env for etl setting
Browse files Browse the repository at this point in the history
  • Loading branch information
yu23ki14 committed Aug 5, 2024
1 parent f901a44 commit fd5c1e9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions etl/src/birdxplorer_etl/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit fd5c1e9

Please sign in to comment.