-
-
Notifications
You must be signed in to change notification settings - Fork 267
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
Empty chip in some cases on price page #5437
Comments
The empty chip is there because there's no brand and we get an empty string as brand. cf. https://prices.openfoodfacts.org/app/products/26014586: there's no brand and no weight. cf. https://prices.openfoodfacts.org/api/v1/prices?product_code=26014586: {
"items": [
{
"product_code": "26014586",
"product_name": null,
"category_tag": null,
"labels_tags": null,
"origins_tags": null,
"price": 2.59,
"price_is_discounted": false,
"price_without_discount": null,
"price_per": null,
"currency": "EUR",
"location_osm_id": 1793355690,
"location_osm_type": "NODE",
"date": "2024-06-17",
"proof_id": 7407,
"id": 28564,
"product_id": 229240,
"location_id": 27,
"owner": "teolemon",
"created": "2024-06-17T18:22:57.206315Z",
"product": {
"code": "26014586",
"price_count": 1,
"id": 229240,
"source": "off",
"product_name": "Wraps jambon brebis",
"product_quantity": null,
"product_quantity_unit": null,
"categories_tags": [
"en:sandwiches",
"en:wraps"
],
"brands": "",
"brands_tags": [],
"labels_tags": [],
"image_url": "https://images.openfoodfacts.org/images/products/26014586/front_fr.34.400.jpg",
"nutriscore_grade": "c",
"ecoscore_grade": "unknown",
"nova_group": 4,
"unique_scans_n": 4,
"created": "2024-01-11T06:06:12.090492Z",
"updated": "2024-06-19T09:07:58.803380Z"
},
"proof": {
"id": 7407,
"file_path": "0008/bD5KabVSs7.jpg",
"mimetype": "image/jpeg",
"type": "RECEIPT",
"price_count": 13,
"owner": "teolemon",
"created": "2024-06-17T18:22:56.973793Z"
},
"location": {
"osm_id": 1793355690,
"osm_type": "NODE",
"price_count": 91,
"id": 27,
"osm_name": "ALDI",
"osm_display_name": "ALDI, 86, Rue Édouard Vaillant, Levallois-Perret, Nanterre, Hauts-de-Seine, Île-de-France, France métropolitaine, 92300, France",
"osm_tag_key": "shop",
"osm_tag_value": "supermarket",
"osm_address_postcode": "92300",
"osm_address_city": "Levallois-Perret",
"osm_address_country": "France",
"osm_address_country_code": "FR",
"osm_lat": 48.8974057,
"osm_lon": 2.2880062,
"created": "2024-01-05T19:04:53.408696Z",
"updated": "2024-06-17T18:22:59.149421Z"
}
}
],
"total": 1,
"page": 1,
"size": 50,
"pages": 1
} |
Problem
Empty chip in some cases on price page
![Screenshot_20240623-093709.png](https://private-user-images.githubusercontent.com/1689815/342048429-f515c5e6-e138-4602-ab25-ade5537986c2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQzNzI2MjYsIm5iZiI6MTcyNDM3MjMyNiwicGF0aCI6Ii8xNjg5ODE1LzM0MjA0ODQyOS1mNTE1YzVlNi1lMTM4LTQ2MDItYWIyNS1hZGU1NTM3OTg2YzIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjNUMDAxODQ2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NjBjYWM3MWJmMzY1MGQyMjQwMjcxMmY0NmJiMzJlMjgxMjQ1MzNkN2MyM2UwMmI4NGI0ZmI2YTYwNTE4MmM1NyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.aOWfCMpVlXQFoJD9Hc-t52Va5rAPyFjSptMyanQZ-Hs)
The text was updated successfully, but these errors were encountered: