coddingtonbear / python-myfitnesspal

Access your meal tracking data stored in MyFitnessPal programatically
MIT License
794 stars 138 forks source link

Fix totals calculation bug when using Unit-Aware version #49

Closed HelloThisIsFlo closed 6 years ago

HelloThisIsFlo commented 7 years ago

There was a problem with the Unit-Aware version.

Whenever the totals would be fetched. It would re-calculate the value.

coddingtonbear commented 6 years ago

Awesome -- I can't believe I didn't notice this bug before -- thanks for the patch, and, especially, the test case showing the error!

Cheers!