-
-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use prepared nutrition values to compute nutriscore of cocoa and…
… chocolate powders (#6552)
- Loading branch information
1 parent
2fc8e67
commit fceefac
Showing
4 changed files
with
107 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
99 changes: 99 additions & 0 deletions
99
t/expected_test_results/nutriscore/cocoa-and-chocolate-powders.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
{ | ||
"categories" : "cocoa and chocolate powders", | ||
"categories_hierarchy" : [ | ||
"en:cocoa-and-its-products", | ||
"en:cocoa-and-chocolate-powders" | ||
], | ||
"categories_lc" : "en", | ||
"categories_properties" : { | ||
"agribalyse_proxy_food_code:en" : "18167" | ||
}, | ||
"categories_properties_tags" : [ | ||
"all-products", | ||
"categories-known", | ||
"agribalyse-food-code-unknown", | ||
"agribalyse-proxy-food-code-18167", | ||
"agribalyse-proxy-food-code-known", | ||
"ciqual-food-code-unknown", | ||
"agribalyse-known", | ||
"agribalyse-18167" | ||
], | ||
"categories_tags" : [ | ||
"en:cocoa-and-its-products", | ||
"en:cocoa-and-chocolate-powders" | ||
], | ||
"food_groups_tags" : [], | ||
"lc" : "en", | ||
"misc_tags" : [ | ||
"en:nutrition-grade-computed-for-prepared-product", | ||
"en:nutrition-no-fruits-vegetables-nuts", | ||
"en:nutrition-no-fiber-or-fruits-vegetables-nuts", | ||
"en:nutriscore-computed" | ||
], | ||
"nutriments" : { | ||
"energy_prepared_100g" : 287, | ||
"fat_prepared_100g" : 0, | ||
"fiber_prepared_100g" : 1.9, | ||
"nutrition-score-fr" : -1, | ||
"nutrition-score-fr_100g" : -1, | ||
"proteins_prepared_100g" : 3.8, | ||
"saturated-fat_prepared_100g" : 1.1, | ||
"sodium_prepared_100g" : 0.045, | ||
"sugars_prepared_100g" : 6.3 | ||
}, | ||
"nutriscore_data" : { | ||
"energy" : 287, | ||
"energy_points" : 0, | ||
"energy_value" : 287, | ||
"fiber" : 1.9, | ||
"fiber_points" : 1, | ||
"fiber_value" : 1.9, | ||
"fruits_vegetables_nuts_colza_walnut_olive_oils" : 0, | ||
"fruits_vegetables_nuts_colza_walnut_olive_oils_points" : 0, | ||
"fruits_vegetables_nuts_colza_walnut_olive_oils_value" : 0, | ||
"grade" : "a", | ||
"is_beverage" : 0, | ||
"is_cheese" : 0, | ||
"is_fat" : 0, | ||
"is_water" : 0, | ||
"negative_points" : 2, | ||
"positive_points" : 3, | ||
"proteins" : 3.8, | ||
"proteins_points" : 2, | ||
"proteins_value" : 3.8, | ||
"saturated_fat" : 1.1, | ||
"saturated_fat_points" : 1, | ||
"saturated_fat_ratio" : 100, | ||
"saturated_fat_ratio_points" : 10, | ||
"saturated_fat_ratio_value" : 100, | ||
"saturated_fat_value" : 1.1, | ||
"score" : -1, | ||
"sodium" : 45, | ||
"sodium_points" : 0, | ||
"sodium_value" : 45, | ||
"sugars" : 6.3, | ||
"sugars_points" : 1, | ||
"sugars_value" : 6.3 | ||
}, | ||
"nutriscore_grade" : "a", | ||
"nutriscore_score" : -1, | ||
"nutriscore_score_opposite" : 1, | ||
"nutrition_grade_fr" : "a", | ||
"nutrition_grades" : "a", | ||
"nutrition_grades_tags" : [ | ||
"a" | ||
], | ||
"nutrition_score_beverage" : 0, | ||
"nutrition_score_debug" : "using prepared product data for category en:cocoa-and-chocolate-powders", | ||
"nutrition_score_warning_no_fruits_vegetables_nuts" : 1, | ||
"pnns_groups_1" : "unknown", | ||
"pnns_groups_1_tags" : [ | ||
"unknown", | ||
"missing-association" | ||
], | ||
"pnns_groups_2" : "unknown", | ||
"pnns_groups_2_tags" : [ | ||
"unknown", | ||
"missing-association" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters