1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-07 06:25:21 +02: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:
Miroito 2022-03-29 18:07:01 +02:00 committed by GitHub
parent 5e44d1c238
commit 6f309d7a89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 33 additions and 2 deletions

View file

@ -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