From d68983c8d4ed7a4f678603e820febdd4d6adb9a6 Mon Sep 17 00:00:00 2001 From: NguyenND Date: Thu, 16 Oct 2025 11:25:15 -0400 Subject: [PATCH] Updated minor change the exported file Date column width --- app.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 90d7c67..96123e8 100644 --- a/app.py +++ b/app.py @@ -7923,9 +7923,14 @@ def export_time_attendance_excel(records, project_name_for_filename, date_range_ # Auto-size columns - handle merged cells properly for col_idx in range(1, 15): - max_length = 0 column_letter = get_column_letter(col_idx) + # Set fixed width for Day column (column A) + if col_idx == 1: + ws.column_dimensions[column_letter].width = 18 + continue + + max_length = 0 for row in ws.iter_rows(min_col=col_idx, max_col=col_idx): for cell in row: if isinstance(cell, openpyxl.cell.cell.MergedCell):