Open teolemon opened 3 years ago
This is more or less what I've understood:
ProductField.ECOSCORE_GRADE
, ProductField.ECOSCORE_SCORE
and ProductField.ECOSCORE_DATA
I guess this issue should be fixed rather on the backend every time there's a query about a ProductField.ECOSCORE_...
field:
Am I missing something?
cc=de
?
@stephanegigandet @teolemon I still cannot picture the whole thing.
For instance, let's start from https://world.openfoodfacts.org/api/v0/product/8076809572569.json?fields=nutriscore_score,nutriscore_grade,ecoscore_score,ecoscore_grade
{"ecoscore_grade":"d","ecoscore_score":39,"nutriscore_grade":"d","nutriscore_score":17}
) after replacing world.
with fr.
, es.
, it.
, be.
, de.
and nl.
- am I just unlucky or is the URL wrong? Btw same result with pt.
, which is not in the OP country list.ecoscore_grade_nl
, there's not matching output for this particular fieldIn short, it looks like we have nutriscore and ecoscore fields computed only one way, with no way to specify a country.
What
Add this chunk of documentation as a comment
Potential block