Significant Progress
This commit is contained in:
@@ -428,6 +428,21 @@ class ReportGeneratorService:
|
||||
)
|
||||
graphs_dict["body_fat_percentage_master_chart"] = ""
|
||||
|
||||
# Load static fuelling analysis flowchart for page 10
|
||||
flowchart_path = Path("app/estimated_carb_storage.png")
|
||||
if flowchart_path.exists():
|
||||
try:
|
||||
with open(flowchart_path, "rb") as f:
|
||||
graphs_dict["fuelling_analysis_flowchart"] = base64.b64encode(
|
||||
f.read()
|
||||
).decode("utf-8")
|
||||
except Exception as e:
|
||||
print(f"Warning: Could not load fuelling analysis flowchart: {e}")
|
||||
graphs_dict["fuelling_analysis_flowchart"] = ""
|
||||
else:
|
||||
print(f"Warning: Fuelling analysis flowchart not found at {flowchart_path}")
|
||||
graphs_dict["fuelling_analysis_flowchart"] = ""
|
||||
|
||||
# Generate spirometry chart
|
||||
print("Step 4: Generating spirometry chart...")
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user