Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculate statistics for training session #1624

Open
rolandgeider opened this issue Apr 8, 2024 · 2 comments
Open

Calculate statistics for training session #1624

rolandgeider opened this issue Apr 8, 2024 · 2 comments
Assignees

Comments

@rolandgeider
Copy link
Member

Calculate some simple statistics for each training session:

  • tonnage (the amount of total weight moved)
  • overall
  • average intensity

This can be calculated either for the complete session, for a muscle group or a specifig exercise

@AlexChulo
Copy link

Hi, I'd like to work on this issue for my school project. I'm a beginner, and I'd like to implement these statistics for each training session.
I'll try to calculate these for the entire session, muscle groups, and specific exercises. Please let me know if you have any other specific requirements. Thanks!

@rolandgeider
Copy link
Member Author

Some more details:

the session data is stored in the WorkoutSession model, which is also were we want to calculate all this. It is perfectly OK to do this on the fly, we don't need to store any results anywere. If we later see that this is needed, we can always cache them or something. We would add a new method statistics that would return a dictionary with the results.

Also note that at the moment there is no foreign key between a session and its corresponding WorkoutLog (this will change once the flexible workout branch is merged). To access the logs they will need to be filtered manually by workout, user and date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants