debug: 创建 save_report_history 函数测试脚本

数据库测试成功,说明问题在 report_generator.py 的保存逻辑中。

创建了 test_save_logic.py 测试脚本:
- 直接调用 save_report_history 函数
- 传入 file_path 参数
- 查询刚保存的记录
- 验证 file_path 是否正确

运行方式:
```bash
python test_save_logic.py
```

根据测试结果判断:
- 正常:问题在 generate_daily_report 函数的调用逻辑
- 不匹配:问题在 save_report_history 函数本身

Coze-Commit-Type: user
Coze-User-ID: 3722323274763196
Coze-Conversation-ID: 9894087
This commit is contained in:
user9994793890
2026-07-09 13:36:56 +08:00
parent 2fbda995ce
commit 0f2d273f06
2 changed files with 85 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB