Auto-commit local changes before build (2026-01-03 18:48:08)

This commit is contained in:
Ivo Oskamp 2026-01-03 18:48:08 +01:00
parent 2710a140ad
commit bef1d7d336
3 changed files with 16 additions and 4 deletions

View File

@ -1 +1 @@
v20260103-13-reports-edit-and-view-raw-fix
v20260103-14-reports-percentage-2-decimals

View File

@ -532,7 +532,7 @@ def api_reports_data(report_id: int):
"warning_count": int(r.warning_count or 0),
"failed_count": int(r.failed_count or 0),
"missed_count": int(r.missed_count or 0),
"success_rate": float(r.success_rate or 0.0),
"success_rate": round(round(float(r.success_rate or 0.0), 2), 2),
}
for r in rows
],
@ -636,6 +636,7 @@ def api_reports_stats(report_id: int):
if total_runs > 0:
success_rate = ((success_runs + success_override_runs) / float(total_runs)) * 100.0
success_rate = round(success_rate, 2)
# Status distribution (for donut/pie)
status_distribution = [
{"key": "success", "value": success_runs + success_override_runs},
@ -677,7 +678,7 @@ def api_reports_stats(report_id: int):
trends.append(
{
"day": tr.day.isoformat() if tr.day else "",
"success_rate": day_rate,
"success_rate": round(day_rate, 2),
"failed_runs": int(tr.failed_runs or 0),
"warning_runs": int(tr.warning_runs or 0),
"missed_runs": int(tr.missed_runs or 0),
@ -754,7 +755,7 @@ def api_reports_export_csv(report_id: int):
int(r.warning_count or 0),
int(r.failed_count or 0),
int(r.missed_count or 0),
float(r.success_rate or 0.0),
round(float(r.success_rate or 0.0), 2),
])
filename = f"report-{report_id}-summary.csv"
else:

View File

@ -117,6 +117,17 @@
- Resolved an HTML rendering issue causing an extra ">" character above the Name column.
- Improved the reports list to correctly display the report type instead of incorrect metadata.
---
## v20260103-14-reports-percentage-2-decimals
- Limited percentage values in reports to a maximum of two decimal places.
- Applied consistent rounding for percentage fields across:
- Report summary views
- KPI and trend data outputs
- CSV export generation
- Improved readability and consistency of reported percentage values.
================================================================================================================================================
## v0.1.15