From e75fb81c904173656dc18b219f83b0d65b874e8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Alloza=20Gonz=C3=A1lez?= Date: Fri, 29 Oct 2021 13:18:54 +0200 Subject: [PATCH] fix: syntax error in endpoint /week/next (#15) --- app/api/meals.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/meals.py b/app/api/meals.py index 107f878..8a0722a 100644 --- a/app/api/meals.py +++ b/app/api/meals.py @@ -69,7 +69,7 @@ def get_meals_of_current_week(*, db=Depends(get_db), simple=Depends(simplify_ask response_model=List[Union[Meal, SimpleMeal]], summary="Get meals of next week", ) -def get_meals_of_next_week(*, b=Depends(get_db), simple=Depends(simplify_asked)): +def get_meals_of_next_week(*, db=Depends(get_db), simple=Depends(simplify_asked)): """Returns all the meals from next week. Max 7 meals will be returned.""" return simplify( crud.meal.get_week_delta(db, delta_weeks=1), List[SimpleMeal], simple diff --git a/pyproject.toml b/pyproject.toml index b196459..d49b9af 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "meal-planner" -version = "1.2.0" +version = "1.2.1" description = "" authors = ["Diego Alloza González "] packages = [