1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-06 14:05:21 +02:00

add merge funcions for units (#1146)

This commit is contained in:
Hayden 2022-04-09 19:57:49 -08:00 committed by GitHub
parent b93dae109e
commit db095656e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 172 additions and 25 deletions

View file

@ -95,11 +95,16 @@ class IngredientRequest(MealieModel):
ingredient: str
class IngredientMerge(MealieModel):
class MergeFood(MealieModel):
from_food: UUID4
to_food: UUID4
class MergeUnit(MealieModel):
from_unit: UUID4
to_unit: UUID4
from mealie.schema.labels.multi_purpose_label import MultiPurposeLabelSummary
IngredientFood.update_forward_refs()