Fix case sensitivity in README file path for consistency

This commit is contained in:
2026-02-27 22:40:32 +00:00
parent 338be835ab
commit 6877e44293

View File

@@ -7,10 +7,10 @@ def generate_stats():
return f"✅ My Gitea instance is alive and well!\n🕒 Last update: {now}." return f"✅ My Gitea instance is alive and well!\n🕒 Last update: {now}."
def main(): def main():
readme_path = "README.md" readme_path = "README.MD"
if not os.path.exists(readme_path): if not os.path.exists(readme_path):
print("README.md not found!") print(f"{readme_path} not found!")
return return
with open(readme_path, "r", encoding="utf-8") as f: with open(readme_path, "r", encoding="utf-8") as f: