This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.
When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:
Hi,
I was just testing the content rating and it seems it is using integers for average.
Which I think will give a negative view on content, a module that has all 5 stars and only one 4 will get 4 stars instead of 5.
It is easily corrected in the stored procedure but I assume this was done as a performace optimization?
K
ALTER PROCEDURE [dbo].[mp_ContentRating_GetStatsByContent] @ContentGuid uniqueidentifier AS
-- before: SELECT COALESCE(AVG(Rating),0) As CurrentRating, SELECT COALESCE(CONVERT(int,ROUND(AVG(CONVERT(decimal,Rating)),0)),0) As CurrentRating,
Count(*) As TotalRatings FROM [dbo].[mp_ContentRating] WHERE [ContentGuid] = @ContentGuid
Thanks! I've queued this change into the script for the next release.
Best,
Joe