Commit d0f6661a authored by Willard's avatar Willard

Include body and username in review

parent fc7bae33
...@@ -250,7 +250,9 @@ def review_obj(review): ...@@ -250,7 +250,9 @@ def review_obj(review):
return { return {
'id': review.id, 'id': review.id,
'title': review.title, 'title': review.title,
'body': review.body
'rating': review.rating, 'rating': review.rating,
'user': User.query.get(review.user_id)
'user_id': review.user_id, 'user_id': review.user_id,
'dish_id': review.dish_id 'dish_id': review.dish_id
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment