Fix demo rating average calculation and add tests

#3
by Nafris - opened

Fixed incorrect demo-mode rating averages by tracking exact rating sums instead of repeatedly rounding averages. Added four automated tests covering rating creation, updates, distinct voters, and calculation accuracy. All tests, lint, typecheck, and build checks passed.

Nafris changed pull request status to open
Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment