Skip to content

Commit

Permalink
fix: add new Price.type field (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn authored Nov 28, 2024
1 parent 55d20c5 commit 98ba8e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openfoodfacts_exports/exports/parquet/price.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class LocationModel(BaseModel):

class PriceModel(BaseModel):
id: int | None = None
type: str
product_code: str | None = None
product_name: str | None = None
category_tag: str | None = None
Expand Down Expand Up @@ -98,6 +99,7 @@ def serialize_owner(self, owner: str | None, _info) -> str | None:
PRICE_PRODUCT_SCHEMA = pa.schema(
[
pa.field("id", pa.int64(), nullable=True),
pa.field("type", pa.string(), nullable=True),
pa.field("product_code", pa.string(), nullable=True),
pa.field("product_name", pa.string(), nullable=True),
pa.field("category_tag", pa.string(), nullable=True),
Expand Down

0 comments on commit 98ba8e1

Please sign in to comment.