fix: serve data/ from disk via nginx alias; return full athlete data from API

This commit is contained in:
Davide Scaini
2026-04-10 15:57:23 +02:00
parent ae883a7dba
commit 96a3deee5d
2 changed files with 10 additions and 8 deletions
+1 -8
View File
@@ -463,14 +463,7 @@ async def get_athlete(bincio_session: Optional[str] = Cookie(default=None)) -> J
data[k] = edits[k]
except Exception:
pass
return JSONResponse({
"max_hr": data.get("max_hr"),
"ftp_w": data.get("ftp_w"),
"hr_zones": data.get("hr_zones"),
"power_zones": data.get("power_zones"),
"seasons": data.get("seasons", []),
"gear": data.get("gear", {}),
})
return JSONResponse(data)
@app.post("/api/athlete")