Surye / mfp-keto-userscript

MyFitnessPal Keto Script
164 stars 54 forks source link

Some items show total carbs rather than net carbs #42

Closed jpschewe closed 5 years ago

jpschewe commented 6 years ago

In the attached screenshot it seems that the first item of a meal shows total carbs rather than net carbs. I'm using tampermonkey with chrome on Linux. screenshot from 2017-12-06 05-50-07

jpschewe commented 6 years ago

I see the same thing using tampermonkey on Firefox 57.

Surye commented 6 years ago

https://github.com/Surye/mfp-keto-userscript/pull/31

This is somewhat a data issue, if the item says "Net Carbs" it's assumed it's already net carbs because a lot of entries in MFP are put in that way. In this case the tortillas are not net carbs, the name just includes them. I am going to the of the best fix here...

jpschewe commented 6 years ago

OK, so I should use a different entry that doesn't say "net carbs" in it if I'm going to use one that is showing total carbs. Is that correct?

Surye commented 6 years ago

That is the easiest solution you can do, yea. I may change the design but in the mean time that would do it.

jpschewe commented 6 years ago

Although as I look closer at the data, the net carbs total value at the bottom doesn't follow this rule, it just subtracts the total fiber from the total gross carbs.

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.