Skip to content

workouts stats: PR/Recent display truncates fractional weights (e.g. 152.5 → 152) #27

Description

@DTTerastar

Command

```
liftoff-export workouts stats --exercise leg
```

Actual (excerpt)

```
Seated Leg Curl — 65 sessions
PR: 235x12 (May 2025)
Recent: 152x6 ← actual weight is 152.5

...
2026-04 152.5 ███████ ← chart shows the correct value
```

JSON output is correct (`bestWeight: 152.5`); only the markdown PR/Recent line truncates.

Expected

Display 152.5 (or whatever the underlying `bestWeight` is) consistent with the per-month chart and the JSON. Looks like an `int` cast in the markdown formatter.

Severity

minor

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions