Commit 6ca8b973 authored by Willard's avatar Willard

Fix sending user insteaed of name

parent 9939c615
...@@ -252,7 +252,7 @@ def review_obj(review): ...@@ -252,7 +252,7 @@ def review_obj(review):
'title': review.title, 'title': review.title,
'body': review.body, 'body': review.body,
'rating': review.rating, 'rating': review.rating,
'user': User.query.get(review.user_id), 'user': User.query.get(review.user_id).name,
'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