Skip to content

Commit

Permalink
fix: fix error in product weight insight
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Apr 6, 2023
1 parent 0cc7efe commit 6866739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion robotoff/prediction/ocr/product_weight.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def process_multi_packaging(match) -> Optional[dict]:

count = match.group(1)
value = match.group(2)
unit = match.group(3)
unit = match.group(3).lower()

if unit in ("dle", "cle", "mge", "mle", "ge", "kge", "le"):
# When the e letter often comes after the weight unit, the
Expand Down

0 comments on commit 6866739

Please sign in to comment.