diff options
author | Biswakalyan Bhuyan <biswa@surgot.in> | 2024-03-08 04:19:08 +0530 |
---|---|---|
committer | Biswakalyan Bhuyan <biswa@surgot.in> | 2024-03-08 04:19:08 +0530 |
commit | 5fefc7c2f091b861af3f61990671900a780df36d (patch) | |
tree | 6023974b03ce972d85b6517f857c901417477d43 | |
parent | a856463136664eb1dd1b5f219277bd3e0d90de1e (diff) | |
download | crypto-alert-5fefc7c2f091b861af3f61990671900a780df36d.tar.gz crypto-alert-5fefc7c2f091b861af3f61990671900a780df36d.tar.bz2 crypto-alert-5fefc7c2f091b861af3f61990671900a780df36d.zip |
added schedule
-rw-r--r-- | main.py | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -74,9 +74,8 @@ def check(): print(f"Alert! BTC price is {btc_price} USD. Email sent.") -check() -# schedule.every().hour.do(check) +schedule.every().hour.do(check) -# while True: -# schedule.run_pending() -# time.sleep(1) +while True: + schedule.run_pending() + time.sleep(1) |