Skip to content

Cannot save exercise when added outside of the routine #1149

@Daandeve

Description

@Daandeve

Priority/Impact

Medium (affects some functionality)

Description

I have a issue with adding exercises when logging a workout. When I try to add a extra exercise in my routine the app shows a error and does not log anything.

Step by step:

  1. I have a routine created
  2. Start the routine/log for the day
  3. Add a exercise
  4. Fill the reps and weight
  5. Error
Image

After some digging I found that the issue is with missing units for reps and weight, this is a log from the server

django.core.exceptions.ValidationError: ['Repetitions unit must be present if repetitions have a value.']

It took me some time to find this, a default value should be set. That should resolve this issue and also time for others experiencing this.

Server version

2.5.0a1+git6715b84

Mobile app version

1.10.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions