优化搜索框,处理日报自动生成的问题

This commit is contained in:
2026-07-27 14:13:50 +08:00
parent 47e4359eda
commit 7a7fd04e40
2 changed files with 9 additions and 9 deletions

2
app.py
View File

@@ -134,7 +134,7 @@ def scheduled_job():
result = generate_daily_report(config['id'])
if result['success']:
log_info(f' ✓ 成功:{result["total_orders"]} 条订单,金额{result["total_amount"]}', 'scheduler')
log_info(f' ✓ 成功:{result["total_orders"]} 条订单,总电量{result.get("total_degree", 0)} kWh', 'scheduler')
success_count += 1
else:
log_error(f' ✗ 失败:{result["message"]}', 'scheduler')