Little progress

This commit is contained in:
bolade
2025-11-21 12:34:53 +01:00
parent 29ad9e2265
commit 9c1cb1966b
8 changed files with 254 additions and 49 deletions
+15 -14
View File
@@ -1163,12 +1163,13 @@ class ContextGenerator:
]
]
contexts["page_8"]["vo2_max_table"] = graph_generator.generate_table_image(
data=vo2_max_data,
columns=vo2_max_columns,
cell_colors=vo2_max_colors,
header_color="#4dd0e1",
save_as_base64=True,
contexts["page_8"]["vo2_max_table"] = (
graph_generator.generate_vo2_max_table(
data=vo2_max_data,
columns=vo2_max_columns,
cell_colors=vo2_max_colors,
save_as_base64=True,
)
)
# Calculate zone metrics for the table
@@ -1211,11 +1212,10 @@ class ContextGenerator:
]
contexts["page_8"]["hr_zones_table"] = (
graph_generator.generate_table_image(
graph_generator.generate_heart_rate_zones_table(
data=hr_zones_data,
columns=hr_zones_columns,
cell_colors=hr_zones_colors,
header_color="#4dd0e1",
save_as_base64=True,
)
)
@@ -1288,12 +1288,13 @@ class ContextGenerator:
]
rhr_colors = [["#b2ebf2"] + ["#f5f5f5"] * 7]
contexts["page_11"]["rhr_table"] = graph_generator.generate_table_image(
data=rhr_data,
columns=rhr_columns,
cell_colors=rhr_colors,
header_color="#4dd0e1",
save_as_base64=True,
contexts["page_11"]["rhr_table"] = (
graph_generator.generate_resting_heart_rate_table(
data=rhr_data,
columns=rhr_columns,
cell_colors=rhr_colors,
save_as_base64=True,
)
)
# Pages 12-17