Skip to content

Commit 1466582

Browse files
committed
Updated comments for BAU columns for rate table
Clarifies comments and logic for hiding BAU columns in non-rates tables within the Excel workbook generation. No functional changes, only improved code readability.
1 parent 2875a7e commit 1466582

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

reoptjl/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2084,10 +2084,10 @@ def get_combined_format(label, row_color, is_formula=False):
20842084
for col_num in bau_columns[1:]:
20852085
columns_to_hide.add(col_num)
20862086

2087-
# Now set the column properties - no BAU columns to hide for rates table
2087+
# Now set the column properties - remove BAU columns for rates table
20882088
for col_num, header in enumerate(df.columns):
20892089
if not is_rates_table and "BAU" in header and col_num in columns_to_hide:
2090-
# Hide the BAU columns that have been marked (only for non-rates tables)
2090+
# Remove the BAU columns that have been marked (only for non-rates tables)
20912091
worksheet.set_column(col_num + 1, col_num + 1, column_width, None, {'hidden': True})
20922092
else:
20932093
# Set the normal column width for all columns (rates table has no BAU columns to hide)

0 commit comments

Comments
 (0)