question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: Meal plan shows calories per number of base servings and not per serving as stated

See original GitHub issue

EDIT by @berrnd: TODO for this issue: Show the kcal on the recipe page and the meal plan always per 1 serving.


I’ve noticed that “kcal per servings” are not showing correct in the meal plan “recipe card”, it always displays calories per number of base servings from recipe. This would not affect demo data in demo environment since all the recipes have 1 as base servings. its easy to produce this error in the demo environment just by doubling the base servings for one recipe as shown below. Screenshots are taken from prelease out of Version pre-release-3d82c9a

image

Meal plan shows 984 kcal per servings. Should in this case be 492 since we are only planing to make 1 serving

image

Recipe shows 984 kcal for 2 desired servings which is correct. (I think it would be more useful to show kcal per 1 serving here as well but that’s besides the point in this ticket)

image

Recipe shows 492 kcal for 1 desired servings which is correct

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
berrndcommented, Feb 20, 2021

what is the technical difference between desired servings and “meal plan servings”?

Desired servings = the amount of servings you choose on the recipe page to calculate the ingredients/kcal/etc. accordingly. Meal plan servings = the amount of servings of the recipe you have added to the meal plan on a specific day.

0reactions
berrndcommented, Feb 21, 2021

Yes, maybe it would be best to display always (recipe page + meal plan) the kcal per 1 serving - let’s change that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Serving Size on the New Nutrition Facts Label - FDA
Start with Serving Information ... First, look at the serving size and the number of servings per container, which are at the top...
Read more >
2015-2020 Dietary Guidelines for Americans
Table A13-1. Dietary Fiber: Food Sources Ranked by Amounts of Dietary Fiber and Energy per Standard Food Portions & per 100 Grams of...
Read more >
Dietary Guidelines for Americans, 2020-2025
Quantity equivalents for each food group are defined in. Appendix 3. Amounts will vary for those who need <2,000 or >2,000 calories per...
Read more >
What 2000-Calorie Diet Means on a Nutrition Label
Many weight loss plans are based on a 1,200-calorie per day diet for women and a 1,600-calorie per day diet for men.
Read more >
Counting Calories 101: How to Count Calories to Lose Weight
High-quality foods not only provide health benefits, but they also make it a lot easier to consume fewer calories in the long run....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found