From 62259a3c0399f4be9f2df4fd850ee711ca50e7bf Mon Sep 17 00:00:00 2001 From: Shaelyn Tolkamp Date: Mon, 25 Nov 2024 10:49:55 -0800 Subject: [PATCH] Update header formatting in resource forcast --- epictrack-api/src/api/reports/resource_forecast_report.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/epictrack-api/src/api/reports/resource_forecast_report.py b/epictrack-api/src/api/reports/resource_forecast_report.py index 71d521c58..495e53c56 100644 --- a/epictrack-api/src/api/reports/resource_forecast_report.py +++ b/epictrack-api/src/api/reports/resource_forecast_report.py @@ -784,7 +784,11 @@ def _get_table_data(self, data, column_count, cells): table_data.append( [ Paragraph( - f"{ea_type_label.upper()}({len(projects)})", normal_style + ( + f"{ea_type_label.upper()} ({len(projects)} Active Work" + f"{'s' if len(projects) > 1 else ''})" + ), + normal_style ) ] + [""] * (column_count - 1)