aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)