🎨 black-ify the code base
This commit is contained in:
parent
83e1caf19d
commit
d54fd73e53
9 changed files with 126 additions and 19 deletions
|
|
@ -20,7 +20,9 @@ def clean_recipe(recipe):
|
|||
recipe.pop("food_properties", None)
|
||||
for step in recipe["steps"]:
|
||||
for ingredient in step["ingredients"]:
|
||||
ingredient["conversions"] = sorted(ingredient["conversions"], key=lambda c: c["unit"])
|
||||
ingredient["conversions"] = sorted(
|
||||
ingredient["conversions"], key=lambda c: c["unit"]
|
||||
)
|
||||
|
||||
return recipe
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue