Skip to content

Commit

Permalink
fix: always select deepest categorized nodes in category importer
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Mar 16, 2023
1 parent e24e136 commit aba33f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion robotoff/insights/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ def generate_candidates(
# there are candidates that are deepest in the category taxonomy
yield from (
ProductInsight(**candidate.to_dict())
for candidate in candidates
for candidate in select_deepest_taxonomized_candidates(candidates, taxonomy)
if candidate.data.get("above_threshold") is True
)
yield from (
Expand Down

0 comments on commit aba33f8

Please sign in to comment.