Skip to content

Commit 51db4cd

Browse files
committed
fix: limit displayed results to the first four entries in PDF report
1 parent 55f9de3 commit 51db4cd

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

utils/pdf_report.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,10 @@ def create_pdf_report(
423423
Paragraph("Barre", styles["table_header"]),
424424
]
425425
rows = [header]
426-
for level, name, conf, _ in results_data:
426+
427+
table_items = results_data[:4] if len(results_data) > 4 else results_data
428+
429+
for level, name, conf in table_items:
427430
rows.append(
428431
[
429432
Paragraph(level, styles["table_cell"]),

0 commit comments

Comments
 (0)