We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e71f2d commit dde8ebdCopy full SHA for dde8ebd
1 file changed
project/backend/RecipeSUCUK.py
@@ -1,14 +1,13 @@
1
# SUCUK = Search for Uncomplicated Cooking and User-friendly Kitchen recipes
2
-import Database
3
from Ingredient import Ingredient
4
from Recipe import Recipe
5
from Database import getAllRecipes, getAllIngredientsForRecipe
6
7
8
-def findRecipes(ingriedents: list[Ingredient]) -> list[Recipe]:
+def findRecipes(ingredients: list[Ingredient]) -> list[Recipe]:
9
recipes = __initRecipes()
10
11
- for Ingredient in ingriedents:
+ for Ingredient in ingredients:
12
recipes = __filterRecipes(recipes, Ingredient)
13
14
recipes.sort(key=lambda x: x.getRating(), reverse=True)
0 commit comments