-
-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add evaluations to nutrition facts table knowledge panel (#6152)
* feat: add evaluations to nutrition facts table * import_more_sample_data * run gen_top_tags_per_country.pl after import * 0% -> - * ignore generated files * fiber:good, alcohol:always_bad
- Loading branch information
1 parent
e236084
commit 41cd8b2
Showing
11 changed files
with
161 additions
and
54 deletions.
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
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
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
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,23 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
cd /tmp | ||
|
||
echo "\033[32m------------------ 1/ Retrieve products -----------------\033[0m"; | ||
# explicitly specify the wget output file name so that wget does not append .1 if already present | ||
# e.g. if the tar command failed and the script was stopped | ||
wget -O products.tar.gz https://static.openfoodfacts.org/exports/products.random-modulo-1000.tar.gz 2>&1 | ||
tar -xzvf products.tar.gz -C /mnt/podata/products | ||
rm products.tar.gz | ||
|
||
echo "\033[32m------------------ 2/ Retrieve product images -------------------\033[0m"; | ||
wget -O products.images.tar.gz https://static.openfoodfacts.org/exports/products.random-modulo-1000.images.tar.gz 2>&1 | ||
tar -xzvf products.images.tar.gz -C /opt/product-opener/html/images/products/ | ||
rm products.images.tar.gz | ||
|
||
echo "\033[32m------------------ 3/ Import products -------------------\033[0m"; | ||
perl -I/opt/product-opener/lib /opt/product-opener/scripts/update_all_products_from_dir_in_mongodb.pl | ||
|
||
echo "\033[32m------------------ 4/ Compute category stats -------------------\033[0m"; | ||
perl -I/opt/product-opener/lib /opt/product-opener/scripts/gen_top_tags_per_country.pl |
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
Binary file not shown.
Oops, something went wrong.