Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug when save the rating in database #156

Open
ghost opened this issue Feb 15, 2018 · 0 comments
Open

Bug when save the rating in database #156

ghost opened this issue Feb 15, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Feb 15, 2018

When user clicks for rating 5 for the example, the rating in rates table is not 5, but 4.* or float which is not correct, because user wants to set an reting 5 . If half star is enabled and 2 users want to select 3.5 rating, average rating can be something like (3.222 + 3.333)/2 or 3.2775 the helper will round it to 3, which is not correct. The correct average rating in this case must be 3.5, and their ratings must be 3.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants