fix: QI project Excel export — PDCAPhaseChoices/FOCUSPhaseChoices not imported
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m25s

NameError in export_utils.py (line 168 used PDCAPhaseChoices.choices without
importing it). Added the import. Re-verified: export now returns 200 with
correct content-type (application/vnd.openxmlformats-officedocument.spreadsheetml.sheet).
This commit is contained in:
ismail 2026-06-16 23:59:42 +03:00
parent badb6a9ebf
commit e2109ff913

View File

@ -2,6 +2,8 @@ from openpyxl import Workbook
from openpyxl.styles import Font, PatternFill, Alignment, Border, Side from openpyxl.styles import Font, PatternFill, Alignment, Border, Side
from openpyxl.utils import get_column_letter from openpyxl.utils import get_column_letter
from .models import PDCAPhaseChoices, FOCUSPhaseChoices
NAVY_FILL = PatternFill(start_color="005696", end_color="005696", fill_type="solid") NAVY_FILL = PatternFill(start_color="005696", end_color="005696", fill_type="solid")
BLUE_FILL = PatternFill(start_color="E0F2FE", end_color="E0F2FE", fill_type="solid") BLUE_FILL = PatternFill(start_color="E0F2FE", end_color="E0F2FE", fill_type="solid")