INNER CODE UNIT · Python
leaderboard_page
canarybyte/veridrop · web/server.py:143
async def leaderboard_page(
request: Request,
page: int = 1,
) -> HTMLResponse:
"""中转站红黑榜 — 按域名聚合所有公开检测报告。
SEO/GEO 杀手锏:任意「XX 中转站怎么样」搜索直接命中此页。
Layout:
- Top 10 (主榜):always visible, no pagination, sorted by Bayesian-
weighted ranking score so consistently-tested relays beat fluky-
single-pass ones.
- Rest (全部列表):paginated 25/page via ?page=N. Each page indexable
for SEO long-tail (`?page=2` etc.).
"""
all_relays, summary = leaderboard.aggregate()
top = all_relays[:_LEADERBOARD_TOP_N]
rest = all_relays[_LEADERBOARD_TOP_N:]