🎨 black-ify the code base

This commit is contained in:
neingeist 2026-04-08 23:51:21 +02:00
parent 83e1caf19d
commit d54fd73e53
9 changed files with 126 additions and 19 deletions

View file

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