mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 06:23:34 -07:00
add carbs
This commit is contained in:
parent
3882648dbf
commit
109cb7af1b
2 changed files with 10 additions and 1 deletions
|
@ -10,6 +10,7 @@ class Nutrition(SqlAlchemyBase):
|
|||
fatContent = sa.Column(sa.String)
|
||||
fiberContent = sa.Column(sa.String)
|
||||
proteinContent = sa.Column(sa.String)
|
||||
carbohydrateContent = sa.Column(sa.String)
|
||||
sodiumContent = sa.Column(sa.String)
|
||||
sugarContent = sa.Column(sa.String)
|
||||
|
||||
|
@ -21,6 +22,7 @@ class Nutrition(SqlAlchemyBase):
|
|||
proteinContent=None,
|
||||
sodiumContent=None,
|
||||
sugarContent=None,
|
||||
carbohydrateContent=None,
|
||||
) -> None:
|
||||
self.calories = calories
|
||||
self.fatContent = fatContent
|
||||
|
@ -28,3 +30,4 @@ class Nutrition(SqlAlchemyBase):
|
|||
self.proteinContent = proteinContent
|
||||
self.sodiumContent = sodiumContent
|
||||
self.sugarContent = sugarContent
|
||||
self.carbohydrateContent = carbohydrateContent
|
||||
|
|
|
@ -22,12 +22,18 @@ class RecipeStep(BaseModel):
|
|||
class Config:
|
||||
orm_mode = True
|
||||
|
||||
class RecipeAsset(BaseModel):
|
||||
name: str
|
||||
icon: str
|
||||
path: str
|
||||
|
||||
|
||||
class Nutrition(BaseModel):
|
||||
calories: Optional[str]
|
||||
fatContent: Optional[str]
|
||||
fiberContent: Optional[str]
|
||||
proteinContent: Optional[str]
|
||||
carbohydrateContent: Optional[str]
|
||||
fiberContent: Optional[str]
|
||||
sodiumContent: Optional[str]
|
||||
sugarContent: Optional[str]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue