Skip to content

refactor: remove unused methods and clean up user repository for impr…#72

Merged
Alwil17 merged 1 commit into
masterfrom
devmain
Jun 7, 2025
Merged

refactor: remove unused methods and clean up user repository for impr…#72
Alwil17 merged 1 commit into
masterfrom
devmain

Conversation

@Alwil17

@Alwil17 Alwil17 commented Jun 7, 2025

Copy link
Copy Markdown
Owner

This pull request includes a fix to the get_user_stats method in the user_repository.py file. The change addresses an issue with calculating the average ratings per user by replacing the previous approach with a subquery-based method.

Fixes to average ratings calculation:

  • app/infrastructure/repositories/user_repository.py: Replaced the direct query approach for calculating average ratings per user with a subquery-based method. This involves first creating a subquery to count ratings per user and then calculating the average of those counts.

@Alwil17 Alwil17 merged commit a88d892 into master Jun 7, 2025
4 checks passed
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

Successfully merging this pull request may close these issues.

1 participant