From 447e791ab6d272235b7d84e591699026159ea8b3 Mon Sep 17 00:00:00 2001 From: fujie Date: Mon, 9 Feb 2026 21:58:27 +0800 Subject: [PATCH] style: fix lint global errors and synchronize stats generator --- README.md | 8 ++++---- README_CN.md | 6 +++--- scripts/openwebui_stats.py | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 1f272ec..c325f05 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ A collection of enhancements, plugins, and prompts for [OpenWebUI](https://githu Located in the `plugins/` directory, containing Python-based enhancements: -#### Actions +### Actions - **Smart Mind Map** (`smart-mind-map`): Generates interactive mind maps from text. - **Smart Infographic** (`infographic`): Transforms text into professional infographics using AntV. @@ -74,7 +74,7 @@ Located in the `plugins/` directory, containing Python-based enhancements: - **Export to Excel** (`export_to_excel`): Exports chat history to Excel files. - **Export to Word** (`export_to_docx`): Exports chat history to Word documents. -#### Filters +### Filters - **GitHub Copilot SDK Files Filter** (`github_copilot_sdk_files_filter`): Essential companion for Copilot SDK. Bypasses RAG to ensure full file accessibility for Agents. - **Web Gemini Multimodal Filter** (`web_gemini_multimodel_filter`): Adds multimodal capabilities (PDF, Video, Office) to any model with intelligent routing. @@ -83,11 +83,11 @@ Located in the `plugins/` directory, containing Python-based enhancements: - **Folder Memory** (`folder-memory`): Automatically extracts project rules from conversations and injects them into the folder's system prompt. - **Markdown Normalizer** (`markdown_normalizer`): Fixes common Markdown formatting issues in LLM outputs. -#### Pipes +### Pipes - **GitHub Copilot SDK** (`github-copilot-sdk`): Official GitHub Copilot SDK integration. Supports dynamic models (GPT-4o, Claude 3.5, o1), multi-turn conversation, streaming, and infinite sessions. -#### Pipelines +### Pipelines - **MoE Prompt Refiner** (`moe_prompt_refiner`): Refines prompts for Mixture of Experts (MoE) summary requests to generate high-quality comprehensive reports. diff --git a/README_CN.md b/README_CN.md index f0766ff..fd434a6 100644 --- a/README_CN.md +++ b/README_CN.md @@ -10,11 +10,11 @@ OpenWebUI 增强功能集合。包含个人开发与收集的插件、提示词 > 🕐 自动更新于 2026-02-09 21:37 | 👤 作者 | 👥 粉丝 | ⭐ 积分 | 🏆 贡献 | -|:---:|:---:|:---:|:---:| +| :---: | :---: | :---: | :---: | | [Fu-Jie](https://openwebui.com/u/Fu-Jie) | **211** | **261** | **44** | | 📝 发布 | ⬇️ 下载 | 👁️ 浏览 | 👍 点赞 | 💾 收藏 | -|:---:|:---:|:---:|:---:|:---:| +| :---: | :---: | :---: | :---: | :---: | | **21** | **3950** | **46015** | **223** | **267** | ### 🔥 热门插件 Top 6 @@ -22,7 +22,7 @@ OpenWebUI 增强功能集合。包含个人开发与收集的插件、提示词 > 🕐 自动更新于 2026-02-09 21:37 | 排名 | 插件 | 版本 | 下载 | 浏览 | 更新日期 | -|:---:|------|:---:|:---:|:---:|:---:| +| :---: | :--- | :---: | :---: | :---: | :---: | | 🥇 | [Smart Mind Map](https://openwebui.com/posts/turn_any_text_into_beautiful_mind_maps_3094c59a) | 0.9.2 | 922 | 8126 | 2026-01-28 | | 🥈 | [Smart Infographic](https://openwebui.com/posts/smart_infographic_ad6f0c7f) | 1.5.0 | 668 | 6285 | 2026-01-30 | | 🥉 | [Export to Word Enhanced](https://openwebui.com/posts/export_to_word_enhanced_formatting_fca6a315) | 0.4.4 | 370 | 2877 | 2026-02-07 | diff --git a/scripts/openwebui_stats.py b/scripts/openwebui_stats.py index e337acf..7b5af59 100644 --- a/scripts/openwebui_stats.py +++ b/scripts/openwebui_stats.py @@ -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):