Changes

Jump to navigation Jump to search
Data quality issue with percentage
Line 59: Line 59:  
}}
 
}}
   −
{{#external_value:count}} vegetable oils with Nutri-Score B (100 products max):
+
{{#get_web_data:
 +
url=https://world.openfoodfacts.org/category/vegetable-oils.json&fields=count&nocache=1
 +
|format=JSON
 +
|use jsonpath
 +
|data=count_category=$.count
 +
|cache seconds=360
 +
|use stale cache
 +
}}
 +
 
 +
{{#external_value:count}} of {{#external_value:count_category}} ({{#expr: ({{#external_value:count}} / {{#external_value:count_category}} * 100)round2}}%) vegetable oils with Nutri-Score B (100 products max displayed):
 
{| class="wikitable"
 
{| class="wikitable"
 
! Name  
 
! Name  

Navigation menu