This commit is contained in:
parent
24d0e0e1b6
commit
47893ea636
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user