openfoodfacts / robotoff

🤖 Real-time and batch prediction service for Open Food Facts
https://openfoodfacts.github.io/robotoff/
GNU Affero General Public License v3.0
80 stars 56 forks source link

fix: add script to normalize barcodes in DB #1428

Closed raphael0202 closed 1 month ago

raphael0202 commented 1 month ago

Add a script to normalize all barcode and image paths according to the following normalization rules:

https://github.com/openfoodfacts/openfoodfacts-server/blob/ac9e33e9d31d0a080335aa1e8dfd91cacfec4c3f/docs/api/ref-barcode-normalization.md

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 3.84615% with 75 lines in your changes missing coverage. Please review.

Project coverage is 54.84%. Comparing base (1730489) to head (d9ea18f). Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
robotoff/cli/main.py 2.73% 71 Missing :warning:
robotoff/off.py 20.00% 4 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1428 +/- ## ========================================== - Coverage 55.32% 54.84% -0.49% ========================================== Files 84 84 Lines 8260 8338 +78 ========================================== + Hits 4570 4573 +3 - Misses 3690 3765 +75 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.