coddingtonbear / python-myfitnesspal

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

Adding set_measurement code. #51

Closed rbelzile closed 6 years ago

rbelzile commented 7 years ago

I know there's another pull request, but that one only supports the weight, whereas I need to update other measurements like Neck, Waist, etc, etc.

This one follows the get_measurement syntax - set_measurement('Neck', 32.0) will set a neck measurement for today for 32 inches.

rbelzile commented 7 years ago

Sorry about all the formatting stuff, moving to Visual Studio for my python stuff and something's weird, I may reinstall.

coddingtonbear commented 6 years ago

Awesome, thanks for the patch @rbelzile! I think this'll come into handy for lots of people.

I'm going to merge this right now so it can make the next release, but I'd :heart: a test or two covering this new functionality if you had the time and willingness to help out just a little tiny bit more.

Cheers!