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

Nutrition plan: pick correct body weight entry #210

Closed
rolandgeider opened this issue Oct 11, 2015 · 3 comments · Fixed by #231
Closed

Nutrition plan: pick correct body weight entry #210

rolandgeider opened this issue Oct 11, 2015 · 3 comments · Fixed by #231
Milestone

Comments

@rolandgeider
Copy link
Member

In the get_nutritional_values method of NutritionPlan the per-kg-calculation uses the user's last weight entry. While this is correct when adding meals to the plan, it can be wrong when opening the plan later (the user's weight changed). This should be changed so that the weight entry closest to the plan's date should be used.

@avinsrid
Copy link

I can take a look at this

~Avinash

@rolandgeider
Copy link
Member Author

👍

@rolandgeider
Copy link
Member Author

Hey @avinsrid, how is it going?

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

Successfully merging a pull request may close this issue.

2 participants