Remove unused code, always restrict against age rating

Make comments more clear
This commit is contained in:
Amelia 2025-06-23 15:01:34 +02:00
parent 51e1201ff3
commit b40b25a4e7
3 changed files with 12 additions and 15 deletions

View file

@ -193,13 +193,11 @@ public class GenreRepository : IGenreRepository
SeriesCount = g.SeriesMetadatas
.Where(sm => seriesIds.Contains(sm.SeriesId))
.RestrictAgainstAgeRestriction(ageRating)
//.Select(sm => sm.Id)
.Distinct()
.Count(),
ChapterCount = g.Chapters
.Where(cp => seriesIds.Contains(cp.Volume.SeriesId))
.RestrictAgainstAgeRestriction(ageRating)
//.Select(ch => ch.Id)
.Distinct()
.Count()
})
@ -212,11 +210,11 @@ public class GenreRepository : IGenreRepository
Id = g.Id,
Title = g.Title,
SeriesCount = g.SeriesMetadatas
.Select(sm => sm.Id)
.RestrictAgainstAgeRestriction(ageRating)
.Distinct()
.Count(),
ChapterCount = g.Chapters
.Select(ch => ch.Id)
.RestrictAgainstAgeRestriction(ageRating)
.Distinct()
.Count()
})