From 47893ea63678ad0b829eeb585e3ac80a14cefe40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Sun, 13 Feb 2022 22:56:34 +0100 Subject: [PATCH] fix meal memes --- mealapi/resources/mealindividualresource.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()