[product] return code in response
Some checks are pending
Python lint and test / linttest (push) Waiting to run

This commit is contained in:
Piotr Domański 2024-08-03 22:30:39 +02:00
parent d66eb8affa
commit a701b952e8

View file

@ -1,6 +1,7 @@
from pydantic import BaseModel
from typing import List
from pydantic import BaseModel
class Product(BaseModel):
"""Product."""
@ -12,6 +13,7 @@ class Product(BaseModel):
carb: float
fat: float
fiber: float
barcode: str | None
class Config:
from_attributes = True