coddingtonbear / python-myfitnesspal

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

Handle new "macro-value" span element in entries #36

Closed SgtCoDFish closed 8 years ago

SgtCoDFish commented 8 years ago

Regular diary entries, and the goals entries, had a span element added to support toggling views of %age based macro goals and raw nutrition values.

Adds support for getting the actual values from the table of a diary page. Ignores the %age values but these could be implemented in future.

Also adds some span elements to the test page to ensure the changes work as expected.

agbrook commented 8 years ago

Thank you. Applying this to the module on my server fixed the issue with the script that I noticed today.

bcongdon commented 8 years ago

Doh. Wish I saw this PR. Just debugged and solved this same problem independently. :stuck_out_tongue_closed_eyes:

Anywho, I +1 these changes.

coddingtonbear commented 8 years ago

Awesome; thanks for the patch @SgtCoDFish! Sorry for the delay!