Surye / mfp-keto-userscript

MyFitnessPal Keto Script
164 stars 54 forks source link

Net Carb Calculation at Bottom not adding corectly #43

Closed scotprice closed 5 years ago

scotprice commented 6 years ago

I am writing to report that when the calculations of total net carbs are done at the bottom, they arent calculating the total correctly. Total Net Carbs seem to be missing a few items.

ADevsBestFriend commented 6 years ago

Reporting this issue as well. 2017-12-11_10-06-54

Surye commented 6 years ago

For both of you, do you have items that say "Net Carbs" in the title?

lawless01 commented 6 years ago

Same issue. "Net Carbs" is in the title. image

image

Trotzali commented 6 years ago

I am also having the same issue. Not carbs at the bottom not adding up in the Totals row. Remaining row looks ok but Total is out

screen shot 2018-03-08 at 8 12 38 pm
ghost commented 5 years ago

Hi there,

I was having the same issue - Total Net Carbs at the bottom was wrong. So I tasked a friend with fixing the code, and it now works. In the total row at the bottom, instead of subtracting fibre from carbs, which is wrong because in some cases we don't want to subtract the fibre, it now simply adds the net carbs together.

Happy to share the modified file if anyone is interested.

Cheers,

Paul

Surye commented 5 years ago

There was a bug where the total wasn't tracking the "already included fiber" from "net carb" food entries. It should be fixed now.