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:
BIN
assets/image_20260709133605216.png
Normal file
BIN
assets/image_20260709133605216.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 78 KiB |
Reference in New Issue
Block a user