Skip to content

Commit

Permalink
update: get interval_time from env
Browse files Browse the repository at this point in the history
  • Loading branch information
jotpalch committed Aug 1, 2024
1 parent 0278936 commit 192497c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notifier/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def main():
# 從環境變數獲取 Line Notify 權杖
line_notify_token = os.getenv('LINE_NOTIFY_TOKEN')

interval_time = 60
interval_time = os.getenv('INTERVAL_TIME', 180)

while True:
print(f'{datetime.now().strftime("%Y-%m-%d %H:%M:%S")} 查看資料庫有無更新')
Expand Down

0 comments on commit 192497c

Please sign in to comment.