Spaces:
Runtime error
Runtime error
Update pdf_generator.py
Browse files- pdf_generator.py +6 -9
pdf_generator.py
CHANGED
|
@@ -123,20 +123,16 @@ def process_workload_scope(session_state, styles):
|
|
| 123 |
|
| 124 |
story.append(Paragraph("Feature Prioritization", styles['Heading2']))
|
| 125 |
for i, feature in enumerate(answers['feature_prioritization']):
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
story.append(Paragraph(f"<b>Feature {i+1}</b>: {line}", styles['Answer']))
|
| 129 |
|
| 130 |
-
# story.append(Paragraph("Preferred Start Period", styles['Heading2']))
|
| 131 |
-
# story.append(Paragraph(str(answers['preferred_start_period']), styles['Answer']))
|
| 132 |
story.append(Paragraph("Preferred Start Period", styles['Heading2']))
|
| 133 |
story.append(Paragraph(f"<b>{answers['preferred_start_period'][0]}</b> - <b>{answers['preferred_start_period'][1]}</b>", styles['Answer']))
|
| 134 |
|
| 135 |
story.append(Paragraph("Team Composition", styles['Heading2']))
|
| 136 |
for team_member in ['partner', 'ibm']:
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
story.append(Paragraph(f"<b>{team_member.capitalize()}</b>: {line}", styles['Answer']))
|
| 140 |
|
| 141 |
return story
|
| 142 |
|
|
@@ -173,7 +169,8 @@ def process_validation_criteria(session_state, styles):
|
|
| 173 |
story.append(Paragraph("Qualitative Criteria:", styles['Heading2']))
|
| 174 |
for i, criterion in enumerate(session_state.get('qualitative', [])):
|
| 175 |
description = session_state.get(f'qual_desc_{i}', '')
|
| 176 |
-
story.append(Paragraph(f"<b>{criterion}</b>:
|
|
|
|
| 177 |
|
| 178 |
# Quantitative Criteria
|
| 179 |
story.append(Paragraph("Quantitative Criteria:", styles['Heading2']))
|
|
|
|
| 123 |
|
| 124 |
story.append(Paragraph("Feature Prioritization", styles['Heading2']))
|
| 125 |
for i, feature in enumerate(answers['feature_prioritization']):
|
| 126 |
+
story.append(Paragraph(f"<b>Feature {i+1}</b>:", styles['Answer']))
|
| 127 |
+
story.append(Paragraph(feature, styles['BodyText']))
|
|
|
|
| 128 |
|
|
|
|
|
|
|
| 129 |
story.append(Paragraph("Preferred Start Period", styles['Heading2']))
|
| 130 |
story.append(Paragraph(f"<b>{answers['preferred_start_period'][0]}</b> - <b>{answers['preferred_start_period'][1]}</b>", styles['Answer']))
|
| 131 |
|
| 132 |
story.append(Paragraph("Team Composition", styles['Heading2']))
|
| 133 |
for team_member in ['partner', 'ibm']:
|
| 134 |
+
story.append(Paragraph(f"<b>{team_member.capitalize()}</b>:", styles['Answer']))
|
| 135 |
+
story.append(Paragraph(answers['team_composition'][team_member], styles['BodyText']))
|
|
|
|
| 136 |
|
| 137 |
return story
|
| 138 |
|
|
|
|
| 169 |
story.append(Paragraph("Qualitative Criteria:", styles['Heading2']))
|
| 170 |
for i, criterion in enumerate(session_state.get('qualitative', [])):
|
| 171 |
description = session_state.get(f'qual_desc_{i}', '')
|
| 172 |
+
story.append(Paragraph(f"<b>{criterion}</b>:", styles['Answer']))
|
| 173 |
+
story.append(Paragraph(description, styles['BodyText']))
|
| 174 |
|
| 175 |
# Quantitative Criteria
|
| 176 |
story.append(Paragraph("Quantitative Criteria:", styles['Heading2']))
|