Compare commits

...

2 Commits

View File

@ -27,12 +27,11 @@ def get_latest_git_mtime(repos: dict) -> float:
def is_repo_status_outdated(repos):
latest_mtime = get_latest_git_mtime(repos)
last_mtime = 0
if os.path.exists(filepath("mtime")):
if os.path.exists(filepath("status")) and os.path.exists(filepath("mtime")):
with open(filepath("mtime"), "rt") as fin:
content = fin.read().strip()
print(f"content: {content}")
last_mtime = float(content)
print(f"{latest_mtime} {last_mtime}")
return latest_mtime > last_mtime
def to_keycap(ch: str) -> str: