Skip to content

Commit

Permalink
Set the update to be every 24 hours
Browse files Browse the repository at this point in the history
  • Loading branch information
BlankerL committed Oct 8, 2020
1 parent 94c8c42 commit 60a9a45
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion script.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 60a9a45

Please sign in to comment.