diff --git a/main.py b/main.py index 065f060..ec36422 100644 --- a/main.py +++ b/main.py @@ -56,9 +56,9 @@ def run_async(coroutine): loop.run_until_complete(task) -schedule.every().hour.do(run_async, publish_news) +schedule.every(5).minutes.do(run_async, publish_news) while True: logging.debug('Checking schedule...') schedule.run_pending() - time.sleep(300) + time.sleep(1)