Skip to content

Commit

Permalink
suspicious
Browse files Browse the repository at this point in the history
  • Loading branch information
timelessnesses authored Mar 8, 2024
1 parent 20fe755 commit 504ab5d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/views/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import asyncio

asyncio
import datetime
import subprocess
import time
Expand Down Expand Up @@ -32,7 +33,6 @@ def get_commit_id():
DOCKER = bool(os.getenv("FOLDERISTIC_DOCKER", 0))
IS_UP_TO_DATE = False


async def check_up_to_date():
global IS_UP_TO_DATE
while True:
Expand All @@ -41,6 +41,7 @@ async def check_up_to_date():
"https://api.github.com/repos/timelessnesses/folderistic/commits/master"
) as r:
IS_UP_TO_DATE = (await r.json())["sha"] == COMMIT_ID
print(f"Checked Update {IS_UP_TO_DATE=}")
await asyncio.sleep(60)


Expand Down

0 comments on commit 504ab5d

Please sign in to comment.