mirror of
https://github.com/vinta/awesome-python.git
synced 2026-03-24 01:24:43 +08:00
refactor(website): rename stdlib source type label to Built-in
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -40,7 +40,7 @@ class StarData(TypedDict):
|
|||||||
GITHUB_REPO_URL_RE = re.compile(r"^https?://github\.com/([^/]+/[^/]+?)(?:\.git)?/?$")
|
GITHUB_REPO_URL_RE = re.compile(r"^https?://github\.com/([^/]+/[^/]+?)(?:\.git)?/?$")
|
||||||
|
|
||||||
SOURCE_TYPE_DOMAINS = {
|
SOURCE_TYPE_DOMAINS = {
|
||||||
"docs.python.org": "stdlib",
|
"docs.python.org": "Built-in",
|
||||||
"gitlab.com": "GitLab",
|
"gitlab.com": "GitLab",
|
||||||
"bitbucket.org": "Bitbucket",
|
"bitbucket.org": "Bitbucket",
|
||||||
}
|
}
|
||||||
@@ -85,7 +85,7 @@ def sort_entries(entries: list[dict]) -> list[dict]:
|
|||||||
name = entry["name"].lower()
|
name = entry["name"].lower()
|
||||||
if stars is not None:
|
if stars is not None:
|
||||||
return (0, -stars, name)
|
return (0, -stars, name)
|
||||||
if entry.get("source_type") == "stdlib":
|
if entry.get("source_type") == "Built-in":
|
||||||
return (1, 0, name)
|
return (1, 0, name)
|
||||||
return (2, 0, name)
|
return (2, 0, name)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user