fix meal memes
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2022-02-13 22:56:34 +01:00
parent 24d0e0e1b6
commit 47893ea636

View File

@ -22,8 +22,8 @@ class MealIndividualResource(Resource):
abort(406, error.messages) abort(406, error.messages)
def get(self, mealid): def get(self, mealid):
meals = Meal.query.filter_by(id=mealid).first_or_404() meal = Meal.query.filter_by(id=mealid).first_or_404()
return self.mealschema.dump(list(meals)), 200 return self.mealschema.dump(meal), 200
def delete(self, mealid): def delete(self, mealid):
meal = Meal.query.filter_by(id=mealid).first_or_404() meal = Meal.query.filter_by(id=mealid).first_or_404()