Skip to content

Commit

Permalink
fix: fix nutripatrol deployment and API call
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Apr 11, 2024
1 parent 4fe0ede commit 8455a0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ x-robotoff-base-env:
FASTTEXT_PORT:
ENABLE_MONGODB_ACCESS:
IN_DOCKER_CONTAINER:
IMAGE_MODERATION_SERVICE_URL:
NUM_RQ_WORKERS: 4 # Update worker service command accordingly if you change this settings

x-robotoff-worker-base:
Expand Down
2 changes: 1 addition & 1 deletion robotoff/notifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def notify_image_flag(
image_url = settings.BaseURLProvider.image_url(
product_id.server_type, source_image
)
image_id = int(source_image.rsplit("/", 1)[-1].split(".", 1)[0])
image_id = source_image.rsplit("/", 1)[-1].split(".", 1)[0]
data = {
"barcode": product_id.barcode,
"type": "image",
Expand Down

0 comments on commit 8455a0e

Please sign in to comment.