Skip to content

Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.

volWin: plain 90d window filter (upstream-adapted)

root6c91adefcd28
diff --git a/frontend/src/views/Stats.jsx b/frontend/src/views/Stats.jsx
index 41be0e756..3186f9ce3 100644
--- a/frontend/src/views/Stats.jsx
+++ b/frontend/src/views/Stats.jsx
@@ -120,7 +120,7 @@ function MuscleBalance({ S }) {
const rated = inWin.some(w => w.entries.some(e => e.sets.some(s => s.done && isHardSet(s))))
const on = hard && rated
const load = loadOfWorkouts(inWin, on ? isHardSet : null)
- const volWin = S.workouts.filter(w => historyUnitCompatible(w, S.unit) && (w.start || new Date(w.d).getTime()) > now - 90 * 86400000)
+ const volWin = S.workouts.filter(w => (w.start || new Date(w.d).getTime()) > now - 90 * 86400000)
const vol90 = loadOfWorkouts(volWin, null)
const { worked, missed } = rankOf(load)
const top = worked.slice(0, 4)