Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: small fixes #1404

Merged
merged 3 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ services:
depends_on:
- postgres
- redis
- elasticsearch

update-listener:
<<: *robotoff-base
Expand Down
4 changes: 0 additions & 4 deletions robotoff/insights/annotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,3 @@ def annotate(
auth=auth,
is_vote=is_vote,
)


class InvalidInsight(Exception):
pass
16 changes: 9 additions & 7 deletions robotoff/workers/tasks/import_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,15 @@
image_url=image_url,
ocr_url=ocr_url,
)
enqueue_job(
run_nutrition_table_object_detection,
get_high_queue(product_id),
job_kwargs={"result_ttl": 0},
product_id=product_id,
image_url=image_url,
)

if product_id.server_type.is_food():
enqueue_job(

Check warning on line 153 in robotoff/workers/tasks/import_image.py

View check run for this annotation

Codecov / codecov/patch

robotoff/workers/tasks/import_image.py#L152-L153

Added lines #L152 - L153 were not covered by tests
run_nutrition_table_object_detection,
get_high_queue(product_id),
job_kwargs={"result_ttl": 0},
product_id=product_id,
image_url=image_url,
)

# Run UPC detection to detect if the image is dominated by a UPC (and thus
# should not be a product selected image)
Expand Down
Loading