Skip to content

Commit dde8ebd

Browse files
Fix typo in findRecipes function parameter name
1 parent 8e71f2d commit dde8ebd

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

project/backend/RecipeSUCUK.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
# SUCUK = Search for Uncomplicated Cooking and User-friendly Kitchen recipes
2-
import Database
32
from Ingredient import Ingredient
43
from Recipe import Recipe
54
from Database import getAllRecipes, getAllIngredientsForRecipe
65

76

8-
def findRecipes(ingriedents: list[Ingredient]) -> list[Recipe]:
7+
def findRecipes(ingredients: list[Ingredient]) -> list[Recipe]:
98
recipes = __initRecipes()
109

11-
for Ingredient in ingriedents:
10+
for Ingredient in ingredients:
1211
recipes = __filterRecipes(recipes, Ingredient)
1312

1413
recipes.sort(key=lambda x: x.getRating(), reverse=True)

0 commit comments

Comments
 (0)