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

Use the new nutrients.pl API to show the right default nutrition editing fields for all countries in the world #4199

Open
3 tasks
Tracked by #4457
teolemon opened this issue Aug 29, 2021 · 0 comments

Comments

@teolemon
Copy link
Member

teolemon commented Aug 29, 2021

What

Use the new nutrients.pl API to show the right default nutrition editing fields for all countries in the world
eg: https://fr.openfoodfacts.org/cgi/nutrients.pl
eg: https://us.openfoodfacts.org/cgi/nutrients.pl

  1. according to the country of the product if it is sold in just one country
  2. according to the country of the phone if it is one of the several countries where sold
  3. according to the first country where sold if the country of the phone does not match any of the countries where sold

Example of improvements this approach would bring

  • Always display transfat when country is set to United States
  • Always display added sugars when country is set to United States
  • Always display cholesterol when country is set to United States

Part of

@teolemon teolemon changed the title Always display transfat when country is set to United States Improve the default nutrition fields for the United States Aug 29, 2021
@teolemon teolemon changed the title Improve the default nutrition fields for the United States Use the new nutrients.pl API to show the right default nutrition editing fields for all countries in the world Aug 29, 2021
@VaiTon VaiTon added the feature label Aug 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants