Spaces:
Sleeping
Sleeping
Commit ·
8330d5a
1
Parent(s): cb47676
updated
Browse files347 unmodified lines34834935035135235335430 unmodified lines385386387388389390391392393394347 unmodified linesqa = report_data['qa_log'][i]# Check if we have spaceif y_pos < BOTTOM_MARGIN + 2:break# Question30 unmodified linesplt.close(fig)# === PAGE 2: REMAINING TRANSCRIPT ===if report_data['qa_log'] and len(report_data['qa_log']) > 3:_create_transcript_page(pdf, report_data['qa_log'][3:], A4_WIDTH, A4_HEIGHT,LEFT_MARGIN, RIGHT_MARGIN, TOP_MARGIN, BOTTOM_MARGIN,ACCENT_COLOR, TEXT_COLOR, start_index=4)buffer.seek(0)return buffer347 unmodified lines34834935035135235335430 unmodified lines385386387388389390391392393394395396397398399400347 unmodified linesqa = report_data['qa_log'][i]# Check if we have spaceif y_pos < BOTTOM_MARGIN + 2.2:break# Question30 unmodified linesplt.close(fig)# === PAGE 2: REMAINING TRANSCRIPT ===if report_data['qa_log'] and len(report_data['qa_log']) > max_qa_on_page1:_create_transcript_page(pdf,report_data['qa_log'][max_qa_on_page1:], # Continue from the next unanswered questionA4_WIDTH, A4_HEIGHT,LEFT_MARGIN, RIGHT_MARGIN, TOP_MARGIN, BOTTOM_MARGIN,ACCENT_COLOR, TEXT_COLOR,start_index=max_qa_on_page1 + 1 # Correct numbering)buffer.seek(0)return buffer
backend/services/report_generator.py+11-5