get default hr and power zones from config file
This commit is contained in:
@@ -149,6 +149,16 @@ def extract(
|
||||
console.print(f"Using [bold]{n_workers}[/bold] worker processes.")
|
||||
|
||||
owner = {"handle": cfg.owner_handle, "display_name": cfg.owner_display_name}
|
||||
if cfg.athlete:
|
||||
ath = cfg.athlete
|
||||
owner["athlete"] = {
|
||||
k: v for k, v in {
|
||||
"max_hr": ath.max_hr,
|
||||
"ftp_w": ath.ftp_w,
|
||||
"hr_zones": ath.hr_zones,
|
||||
"power_zones": ath.power_zones,
|
||||
}.items() if v is not None
|
||||
}
|
||||
summaries: list[dict] = []
|
||||
errors: list[tuple[str, str]] = []
|
||||
skipped = 0
|
||||
|
||||
Reference in New Issue
Block a user