You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
In the
get_nutritional_values
method ofNutritionPlan
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.The text was updated successfully, but these errors were encountered: