From 6dd29eaee3c2c1b8a0e5bc80e4c74ed1555bb11e Mon Sep 17 00:00:00 2001
From: sansan <77180927+sansan0@users.noreply.github.com>
Date: Wed, 17 Dec 2025 19:26:34 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20StorageManager=20=E6=B7=BB=E5=8A=A0?=
=?UTF-8?q?=E6=8E=A8=E9=80=81=E8=AE=B0=E5=BD=95=E4=BB=A3=E7=90=86=E6=96=B9?=
=?UTF-8?q?=E6=B3=95=20+=20S3=20=E5=88=87=E6=8D=A2=E8=87=B3=20virtual-host?=
=?UTF-8?q?ed=20style=20=E6=8F=90=E5=8D=87=E5=85=BC=E5=AE=B9=E6=80=A7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README-EN.md | 80 +++++++---------------------------
README.md | 82 +++++++----------------------------
trendradar/__init__.py | 2 +-
trendradar/storage/manager.py | 27 ++++++++++++
trendradar/storage/remote.py | 6 +++
version | 2 +-
6 files changed, 66 insertions(+), 133 deletions(-)
diff --git a/README-EN.md b/README-EN.md
index 17c8880..a87ca8d 100644
--- a/README-EN.md
+++ b/README-EN.md
@@ -10,8 +10,7 @@
-
-
+
[](https://github.com/sansan0/TrendRadar/stargazers)
[](https://github.com/sansan0/TrendRadar/network/members)
@@ -365,14 +364,10 @@ Transform from "algorithm recommendation captivity" to "actively getting the inf
- **Major Version Upgrade**: Upgrading from v1.x to v2.y, recommend deleting existing fork and re-forking to save effort and avoid config conflicts
-### 2025/12/13 - v4.0.0
+### 2025/12/17 - v4.0.1
-**🎉 Major Update: Comprehensive Refactoring of Storage and Core Architecture**
-
-- **Multi-Storage Backend Support**: Introduced a brand new storage module supporting local SQLite and remote cloud storage (S3-compatible protocols, Cloudflare R2 recommended for free tier), adaptable to GitHub Actions, Docker, and local environments.
-- **Database Structure Optimization**: Refactored SQLite database table structures to improve data efficiency and query performance.
-- **Enhanced Features**: Implemented date format standardization, data retention policies, timezone configuration support, and optimized time display. Fixed remote storage data persistence issues to ensure accurate data merging.
-- **Cleanup and Compatibility**: Removed most legacy compatibility code and unified data storage and retrieval methods.
+- StorageManager adds push record proxy methods
+- S3 client switches to virtual-hosted style for better compatibility (supports Tencent Cloud COS and more services)
### 2025/12/13 - mcp-v1.1.0
@@ -388,6 +383,16 @@ Transform from "algorithm recommendation captivity" to "actively getting the inf
-
-> 🎉 **Now Supported: Multi-Cloud Storage Options**
->
-> This project now supports S3-compatible protocols. You can choose:
-> - **Cloudflare R2** (Recommended, generous free tier)
-> - Other S3-compatible storage services
->
-> Simply configure the corresponding `S3_ENDPOINT_URL`, `S3_BUCKET_NAME` and other environment variables to switch.
-
---
1. **Fork this project** to your GitHub account
@@ -3196,7 +3191,7 @@ Cherry Studio provides GUI config interface, 5-minute quick deployment, complex
> 💡 **Tip**: Actually not recommended to ask multiple questions at once. If your chosen AI model cannot even sequentially call as shown below, suggest switching models.
-
+
@@ -3522,51 +3517,6 @@ Any client supporting Model Context Protocol can connect to TrendRadar:
## 🪄 Sponsors
-### 🤖 302.AI - Enterprise AI Resource Platform
-
-> **302.AI** is a pay-as-you-go enterprise-level AI resource platform
-> Providing the latest and most comprehensive **AI models** and **APIs** on the market, plus various ready-to-use online AI applications
-
-
-
-
-
+
[](https://github.com/sansan0/TrendRadar/stargazers)
[](https://github.com/sansan0/TrendRadar/network/members)
@@ -411,15 +410,11 @@ GitHub 一键 Fork 即可使用,无需编程基础。
- **大版本升级**:从 v1.x 升级到 v2.y,建议删除现有 fork 后重新 fork,这样更省力且避免配置冲突
-### 2025/12/13 - v4.0.0
-**🎉 重大更新:全面重构存储和核心架构**
+### 2025/12/17 - v4.0.1
-- **多存储后端支持**:引入全新的存储模块,支持本地 SQLite 和远程云存储(S3 兼容协议,推荐免费的 Cloudflare R2),适应 GitHub Actions、Docker 和本地环境。
-- **数据库结构优化**:重构 SQLite 数据库表结构,提升数据效率和查询能力。
-- **核心代码模块化**:将主程序逻辑拆分为 trendradar 包的多个模块,显著提升代码可维护性。
-- **增强功能**:实现日期格式标准化、数据保留策略、时区配置支持、时间显示优化,并修复远程存储数据持久化问题,确保数据合并的准确性。
-- **清理和兼容**:移除了大部分历史兼容代码,统一了数据存储和读取方式。
+- StorageManager 添加推送记录代理方法
+- S3 客户端切换至 virtual-hosted style 以提升兼容性(支持腾讯云 COS 等更多服务)
### 2025/12/13 - mcp-v1.1.0
@@ -436,6 +431,17 @@ GitHub 一键 Fork 即可使用,无需编程基础。
+
@@ -3541,52 +3537,6 @@ MCP Inspector 是官方调试工具,用于测试 MCP 连接:
## 🪄 赞助商
-> **302.AI** 是按用量付费的企业级 AI 资源平台
-> 提供市场上最新、最全面的 **AI 模型**和 **API**,以及多种开箱即用的在线 AI 应用
-
-
-
-