astashov / liftosaur

Weightlifting tracker app for coders
https://www.liftosaur.com
GNU Affero General Public License v3.0
243 stars 32 forks source link

Alterations to todays program lost if changing 1rm for another exercise #206

Open lsolesen opened 1 month ago

lsolesen commented 1 month ago

Today I found out, I want to do 110 instead of 100 in a set, because it is just to light. I long press on the set and alter the weight. It works well.

Screenshot_20241028_073131_Liftosaur

Then I want to change the 1RM for another exercise.

Screenshot_20241028_073144_Liftosaur

Then it overwrote my changes to the first exercise, so all of the changes are lost for the day.

Screenshot_20241028_073210_Liftosaur

astashov commented 1 month ago

It happens because changing 1RM causes workout to be regenerated, so for all non-completed sets it tries to regenerate sets from a program.

I guess it could be smarter and if only 1RM got changed - it could only target the exercises with that 1RM, instead of going through the whole workout.