fix time.sleep from seconds to minutes
This commit is contained in:
2
main.py
2
main.py
@@ -146,7 +146,7 @@ def check_reddit(config):
|
|||||||
# Send alert
|
# Send alert
|
||||||
send_alert(config, title, text, url, timestamp, keyword)
|
send_alert(config, title, text, url, timestamp, keyword)
|
||||||
|
|
||||||
time.sleep(config.get('interval'))
|
time.sleep(config.get('interval') * 60)
|
||||||
|
|
||||||
# Send alert out
|
# Send alert out
|
||||||
def send_alert(config, title, text, url, timestamp, keyword):
|
def send_alert(config, title, text, url, timestamp, keyword):
|
||||||
|
Reference in New Issue
Block a user