added repo link

This commit is contained in:
2026-10-20 19:44:35 +02:00
parent e00f40eaf4
commit f62c95570e
+3 -1
View File
@@ -7,6 +7,8 @@ from datetime import datetime
from .challenge import BLOCKED_ICON, STATUS_ICON, STATUS_ORDER from .challenge import BLOCKED_ICON, STATUS_ICON, STATUS_ORDER
from .overview import Overview, icons from .overview import Overview, icons
REPO_URL = "https://gitea.cato447.de/cato447/challenge_status_tracker"
def md_cell(v: str) -> str: def md_cell(v: str) -> str:
return v.replace("|", "\\|") return v.replace("|", "\\|")
@@ -23,7 +25,7 @@ def render_hedgedoc(ov: Overview, title: str, tags: str = "") -> str:
L += ["---", f"tags: {tags}", "---", ""] L += ["---", f"tags: {tags}", "---", ""]
L += [f"# {title}", "", L += [f"# {title}", "",
f"**Last updated:** {stamp}", "", f"**Last updated:** {stamp}", "",
f"*generated by `ctf_status.py` from the README.md of every repo in the " f"*generated by [challenge_status_tracker]({REPO_URL}) from the README.md of every repo in the "
f"GitLab challenges group — {len(ov.challenges)} challenges*", "", f"GitLab challenges group — {len(ov.challenges)} challenges*", "",
" · ".join(f"{STATUS_ICON[s]} **{s or 'unknown'}** {total[s]}" " · ".join(f"{STATUS_ICON[s]} **{s or 'unknown'}** {total[s]}"
for s in stages if total[s] or s), ""] for s in stages if total[s] or s), ""]