style: fix lint global errors and synchronize stats generator

This commit is contained in:
fujie
2026-02-09 21:58:27 +08:00
parent cde685a364
commit 447e791ab6
3 changed files with 10 additions and 10 deletions

View File

@@ -445,7 +445,7 @@ class OpenWebUIStats:
username = user.get("username", "")
profile_url = user.get("profile_url", "")
lines.append(t["author_header"])
lines.append("|:---:|:---:|:---:|:---:|")
lines.append("| :---: | :---: | :---: | :---: |")
lines.append(
f"| [{username}]({profile_url}) | **{user.get('followers', 0)}** | "
f"**{user.get('total_points', 0)}** | **{user.get('contributions', 0)}** |"
@@ -454,7 +454,7 @@ class OpenWebUIStats:
# 统计徽章表格
lines.append(t["header"])
lines.append("|:---:|:---:|:---:|:---:|:---:|")
lines.append("| :---: | :---: | :---: | :---: | :---: |")
lines.append(
f"| **{stats['total_posts']}** | **{stats['total_downloads']}** | "
f"**{stats['total_views']}** | **{stats['total_upvotes']}** | **{stats['total_saves']}** |"
@@ -467,7 +467,7 @@ class OpenWebUIStats:
lines.append(t["top6_updated"])
lines.append("")
lines.append(t["top6_header"])
lines.append("|:---:|------|:---:|:---:|:---:|:---:|")
lines.append("| :---: | :--- | :---: | :---: | :---: | :---: |")
medals = ["🥇", "🥈", "🥉", "4", "5", "6"]
for i, post in enumerate(top_plugins):