User Rating Fix (#3340)

This commit is contained in:
Joe Milazzo 2024-11-04 11:22:38 -06:00 committed by GitHub
parent a9775943be
commit c00e18de95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 6 deletions

View file

@ -93,11 +93,9 @@ public static class SeriesFilter
{
if (rating < 0 || !condition || userId <= 0) return queryable;
// Users see rating as %, so they are likely to pass 10%. We need to turn that into the underlying float encoding
if (rating.IsNot(0f))
{
rating /= 100f;
}
// AppUserRating stores a 5-digit number.
rating = Math.Clamp(rating, 0f, 5f);
switch (comparison)
{