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

Quantity: .33L is wrongly converted into 33000 grams #9271

Closed
CharlesNepote opened this issue Nov 8, 2023 · 0 comments · Fixed by #9284
Closed

Quantity: .33L is wrongly converted into 33000 grams #9271

CharlesNepote opened this issue Nov 8, 2023 · 0 comments · Fixed by #9284
Labels
🐛 bug This is a bug, not a feature request. 🧽 Data quality https://wiki.openfoodfacts.org/Quality ⚖️ Quantity

Comments

@CharlesNepote
Copy link
Member

CharlesNepote commented Nov 8, 2023

Example:

As of today (2023-11-08), 174 products have a quantity corresponding to the regexp "^[^0-9]?[\.,]\d+ ?".

0.33l is producing the good result.

Solution

Either:

  • a) create a data quality errors to detect products quantity without a number before the decimal separator
  • b) let Product Opener consider .XX l as 0.XX l

Solution b is ok for me.


See also: #9217

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug This is a bug, not a feature request. 🧽 Data quality https://wiki.openfoodfacts.org/Quality ⚖️ Quantity
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant