Skip to content

Commit 091c1de

Browse files
committed
Hide the option to sync ingredients and images from OFF
This doesn't remove the option, but makes it more difficult for local instances to hammer the OFF servers. See also wger-project/wger#1870
1 parent f88fe3c commit 091c1de

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

config/prod.env

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,10 @@ SYNC_INGREDIENTS_CELERY=True
6464
# - Manually trigger the process as needed:
6565
# docker compose exec web python3 manage.py sync-ingredients
6666

67-
# When scanning products with the barcode scanner, it is possible to dynamically
68-
# fetch the ingredient if it is not known in the local database. This option controlls
69-
# where to try to download the ingredient and their images.
70-
# Possible values OFF, WGER or None. Note that it is recommended to keep this as WGER
71-
# so that we don't overwhelm the Open Food Facts servers. Needs to have USE_CELERY
72-
# set to true
67+
# This option controls whether to download ingredients and their images from the
68+
# configured wger instance. When scanning products with the barcode scanner, it is
69+
# possible to dynamically fetch the ingredient if it is not known in the local database.
70+
# Possible values: WGER or None. Requires USE_CELERY to be set to true.
7371
DOWNLOAD_INGREDIENTS_FROM=WGER
7472

7573
# Whether celery is configured and should be used. Can be left to true with

0 commit comments

Comments
 (0)