openfoodfacts / openfoodfacts-server

Open Food Facts database, API server and web interface - 🐪🦋 Perl, CSS and JS coders welcome 😊 For helping in Python, see Robotoff or taxonomy-editor
http://openfoodfacts.github.io/openfoodfacts-server/
GNU Affero General Public License v3.0
658 stars 387 forks source link

Unexpected empty category besides other categories #896

Closed Phyks closed 5 years ago

Phyks commented 7 years ago

Hi,

https://world.openfoodfacts.org/product/4607025398387/%D0%BA%D0%B5%D1%84%D0%B8%D1%80-%D0%BD%D0%B0-%D0%B6%D0%B8%D0%B2%D0%BE%D0%B9-%D0%B7%D0%B0%D0%BA%D0%B2%D0%B0%D1%81%D0%BA%D0%B5-3-2-%D0%B4%D0%BE%D0%BC%D0%B8%D0%BA-%D0%B2-%D0%B4%D0%B5%D1%80%D0%B5%D0%B2%D0%BD%D0%B5 and https://world.openfoodfacts.org/product/4607025398394/%d0%ba%d0%b5%d1%84%d0%b8%d1%80-%d0%bd%d0%b0-%d0%b6%d0%b8%d0%b2%d0%be%d0%b9-%d0%b7%d0%b0%d0%ba%d0%b2%d0%b0%d1%81%d0%ba%d0%b5-1-%d0%b4%d0%be%d0%bc%d0%b8%d0%ba-%d0%b2-%d0%b4%d0%b5%d1%80%d0%b5%d0%b2%d0%bd%d0%b5 have an empty category as well as many other categories.

This can be seen by the presence of two consecutive commas in the categories list:

[…], Kefir, , Kefir 1 %, […]

as well as in the CSV dump.

When editing the product page, everything seems to be fine https://lut.im/zIpWfPfv95/IjAwYVOkJPheJ8Br.png.

Looking at the CSV dump, it seems this is the only affected products.

hangy commented 5 years ago

Product seems to have been fixed.