fix: 平均值只算本次启动后的记录 + 速度 dm/s→m/s
- 平均值按 automation 开始时间过滤,不再包含历史数据 - 速度单位从 dm/s 转为 m/s(÷10),前端/后端同步转换
This commit is contained in:
@@ -112,9 +112,10 @@ def api_automation_start():
|
||||
@login_required
|
||||
def api_automation_progress(dnt_id):
|
||||
"""获取自动化进度"""
|
||||
since = request.args.get("since", "", type=str)
|
||||
stats = get_serialnet_stats(dnt_id)
|
||||
latest = get_latest_test_state(dnt_id)
|
||||
averages = get_automation_averages(dnt_id)
|
||||
averages = get_automation_averages(dnt_id, since if since else None)
|
||||
return jsonify({
|
||||
"stats": stats,
|
||||
"latest": latest,
|
||||
|
||||
Reference in New Issue
Block a user