-
-
Notifications
You must be signed in to change notification settings - Fork 449
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
Remove nutrient hardcoding (nutrition table/edit mode) using new API #2357
Comments
Currently the nutrient list is harcoded in Line 30 in 46a8fbb
However, we have a Taxonomy of nutrients we can refresh. |
Also it doesn't show fields like Polyols |
How could we get relations between them? (I'm thinking of minerals, vitamins, etc...) @teolemon |
Also, if we create a map at runtime, we should change all occurrences like this if (Nutriments.ENERGY.equals(nutrientShortName)) |
The API is now available to use: https://fr.openfoodfacts.org/cgi/nutrients.pl |
The API is now available to use: https://fr.openfoodfacts.org/cgi/nutrients.pl
https://world.openfoodfacts.org/product/1/pot-au-feu-golden-viginia
The text was updated successfully, but these errors were encountered: