coddingtonbear / python-myfitnesspal

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

added fiber #113

Closed mvinyard closed 2 years ago

mvinyard commented 3 years ago

I noticed fiber was not pulled when pulling a day's nutrition values, example below. I attempted to add it by editing client.py. It was not immediately apparent to me that this might cause inconsistencies elsewhere. Very useful tool, thanks for making.

day = client.get_date(2020, 6, 18)
day

<06/18/20 {'calories': 2253.0, 'carbohydrates': 335.0, 'fat': 68.0, 'protein': 62.0, 'sodium': 2763.0, 'sugar': 110.0}>

day.totals

{'calories': 2253.0, 'carbohydrates': 335.0, 'fat': 68.0, 'protein': 62.0, 'sodium': 2763.0, 'sugar': 110.0}

mvinyard commented 3 years ago

Just realized this was brought up in issue #110

Nuno111 commented 3 years ago

Hi guys,

Im using this script to track my macros in a spreadsheet and its working great, love it!

Will you be adding this functionality to be able to export fibers as well?

Thank you for all your work, this is great!

coddingtonbear commented 2 years ago

I think this was sorted out in #111 that I just merged a little while ago. Cheers!