mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-01-05 08:31:25 -05:00
feat: keep original text on ingredient parse (#1102)
* Keep Original Text on Ingredient Parse * Reorder migration and update test
This commit is contained in:
@@ -63,6 +63,8 @@ class RecipeIngredient(SqlAlchemyBase, BaseMixins):
|
||||
food = orm.relationship(IngredientFoodModel, uselist=False)
|
||||
quantity = Column(Float)
|
||||
|
||||
original_text = Column(String)
|
||||
|
||||
reference_id = Column(GUID) # Reference Links
|
||||
|
||||
@auto_init()
|
||||
|
||||
@@ -54,6 +54,7 @@ class RecipeIngredient(MealieModel):
|
||||
food: Optional[Union[IngredientFood, CreateIngredientFood]]
|
||||
disable_amount: bool = True
|
||||
quantity: float = 1
|
||||
original_text: Optional[str]
|
||||
|
||||
# Ref is used as a way to distinguish between an individual ingredient on the frontend
|
||||
# It is required for the reorder and section titles to function properly because of how
|
||||
|
||||
Reference in New Issue
Block a user