From 37a9443bbb5fab4be15b6af3a1e36da118d114e2 Mon Sep 17 00:00:00 2001 From: Vinta Chen Date: Sun, 22 Mar 2026 02:10:44 +0800 Subject: [PATCH] fix(website): map built-in entries to cpython for star data lookup Entries with source_type 'Built-in' have no extractable GitHub repo key from their URL, so they never received star/metadata enrichment. Fall back to python/cpython for these entries so the star count and related data are populated correctly. Co-Authored-By: Claude --- website/build.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/build.py b/website/build.py index 3c8153c..9ab9f62 100644 --- a/website/build.py +++ b/website/build.py @@ -160,6 +160,8 @@ def build(repo_root: str) -> None: stars_data = load_stars(website / "data" / "github_stars.json") for entry in entries: repo_key = extract_github_repo(entry["url"]) + if not repo_key and entry.get("source_type") == "Built-in": + repo_key = "python/cpython" if repo_key and repo_key in stars_data: sd = stars_data[repo_key] entry["stars"] = sd["stars"]