fix athlete page (power curve calculation)
This commit is contained in:
@@ -140,6 +140,14 @@ def merge_all(data_dir: Path) -> int:
|
||||
if not dest_img.exists():
|
||||
dest_img.symlink_to(img_dir.resolve())
|
||||
|
||||
# Symlink athlete.json if present
|
||||
athlete_src = data_dir / "athlete.json"
|
||||
athlete_dest = merged_dir / "athlete.json"
|
||||
if athlete_dest.exists() or athlete_dest.is_symlink():
|
||||
athlete_dest.unlink()
|
||||
if athlete_src.exists():
|
||||
athlete_dest.symlink_to(athlete_src.resolve())
|
||||
|
||||
# Write merged index.json (private filtered, highlight sorted)
|
||||
index_path = data_dir / "index.json"
|
||||
if index_path.exists():
|
||||
|
||||
Reference in New Issue
Block a user