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)
{

View File

@ -1842,7 +1842,7 @@
"unit-reading-date": "Date",
"unit-average-rating": "Kavita+ external rating, percent",
"unit-reading-progress": "Percent",
"unit-user-rating": "{{metadata-filter-row.unit-reading-progress}}",
"unit-user-rating": "0.0 - 5.0 Stars",
"unit-read-last": "Days from TODAY"
},