diff --git a/mealapi/resources/mealindividualresource.py b/mealapi/resources/mealindividualresource.py index 525aa62..97f2148 100644 --- a/mealapi/resources/mealindividualresource.py +++ b/mealapi/resources/mealindividualresource.py @@ -22,8 +22,8 @@ class MealIndividualResource(Resource): abort(406, error.messages) def get(self, mealid): - meals = Meal.query.filter_by(id=mealid).first_or_404() - return self.mealschema.dump(list(meals)), 200 + meal = Meal.query.filter_by(id=mealid).first_or_404() + return self.mealschema.dump(meal), 200 def delete(self, mealid): meal = Meal.query.filter_by(id=mealid).first_or_404()