aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2024-03-08 04:19:08 +0530
committerLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2024-03-08 04:19:08 +0530
commit5fefc7c2f091b861af3f61990671900a780df36d (patch)
tree6023974b03ce972d85b6517f857c901417477d43
parenta856463136664eb1dd1b5f219277bd3e0d90de1e (diff)
downloadcrypto-alert-5fefc7c2f091b861af3f61990671900a780df36d.tar.gz
crypto-alert-5fefc7c2f091b861af3f61990671900a780df36d.tar.bz2
crypto-alert-5fefc7c2f091b861af3f61990671900a780df36d.zip
added schedule
-rw-r--r--main.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/main.py b/main.py
index c0a634f..c520892 100644
--- a/main.py
+++ b/main.py
@@ -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)