Per user personal ratings (#1820)

* Change personal ratings to be saved per user

* Only copy ratings to users with existing progress records
This commit is contained in:
Muppetteer
2025-12-11 18:37:21 -07:00
committed by GitHub
parent 73b27944e2
commit 8ee53ff7ba
39 changed files with 147 additions and 109 deletions
@@ -394,7 +394,7 @@ export class ReadingHabitsChartService implements OnDestroy {
const metadataScore = (wellOrganizedBooks.length / books.length) * 35; // Max 35
// Personal ratings suggest systematic tracking
const ratedBooks = books.filter(book => book.metadata?.personalRating);
const ratedBooks = books.filter(book => book.personalRating);
const ratingScore = (ratedBooks.length / books.length) * 25; // Max 25
return Math.min(100, seriesScore + metadataScore + ratingScore);