fix: serve data/ from disk via nginx alias; return full athlete data from API
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user