diff --git a/script.py b/script.py index f96b33d08..95da250f6 100644 --- a/script.py +++ b/script.py @@ -69,7 +69,12 @@ def __init__(self): def run(self): while True: self.updater() - time.sleep(86400) + time.sleep( + ( + # Update every 24 hours + datetime.timedelta(hours=24) - (datetime.datetime.now() - datetime.datetime.now().replace(hour=0, minute=0, second=0, microsecond=0)) + ).total_seconds() + ) @staticmethod def github_manager():