Closed tahakucukkatirci closed 6 years ago
Taha all is well except, we already have avg_rating field in our book model. It is recalculated in each rating of users. So it could be a lot faster and easy to just to reflect the field. Get comment is working cool as I tested.
@agoz17 Thanks for the clarification. I had not seen that field in our book model. I will fix it and commit again.
I fixed the bugs and committed again. I think it's now ready to be merged.
I implemented the function to get comments and average rating on a book. A minor update to witapi.py is also made. It is ready to be merged