Open teolemon opened 5 years ago
I think this has been done. @teolemon @stephanegigandet
It's not fixed, see https://world.openfoodfacts.org/category/non-food-products/nova-groups
Hey @teolemon @VaiTon if no one is working on this issue. Can I please take this up?
Hi @vanshikaarora, sure, go ahead. It has been fixed for NOVA, but not for the Nutri-Score
Nova fix is at: https://github.com/openfoodfacts/openfoodfacts-server/blob/master/lib/ProductOpener/Food.pm#L4995
Thank you!
Hey @vanshikaarora sure you can! All contributions are well accepted here! I would say good luck with it! 😆
Hey @VaiTon @stephanegigandet @CharlesNepote , how to check whether it is a non-food product, is there a specific category tag for non-food products?
Yep, see https://world.openfoodfacts.org/category/non-food-products
@VaiTon in the class CategoryName
the field name
would return Non food products
right?Or is there a different feild with the value Non food products
?
Yep, see https://world.openfoodfacts.org/category/non-food-products
@VaiTon in the class
CategoryName
the fieldname
would returnNon food products
right?Or is there a different feild with the valueNon food products
?
I think that should be right but @stephanegigandet could definitely answer correctly.
I believe, it should be possible to check for that category with has_tag($product_ref, 'categories', 'en:non-food-products')
.
Hey, I have solved this Issue here https://github.com/openfoodfacts/openfoodfacts-androidapp/pull/2686. Kindly review :)
What