Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle non-existed nutritional info in search results #160

Merged

Conversation

hannahburkhardt
Copy link
Collaborator

If there's no search-nutritional-info element, don't try to parse calories and brand information.
This might be the case if the search results include user recipes.
To test, search for a string that would return one of your recipes on https://www.myfitnesspal.com/food/search

Fixes #135

@hannahburkhardt hannahburkhardt merged commit 9baf832 into master Jun 3, 2023
5 checks passed
@hannahburkhardt hannahburkhardt deleted the 135_handle-blank-nutr-info-in-search-results branch June 3, 2023 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IndexError when searching food
1 participant