Compare commits

..

No commits in common. "7bb317751c354fe12f83c5996ce6139b6831cf4b" and "d69df23f409f624447a7ffdedbf43ecd1b8a3faa" have entirely different histories.

View File

@ -27,11 +27,12 @@ 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("status")) and os.path.exists(filepath("mtime")):
if 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: