mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-05-13 11:02:18 -04:00
User Rating Fix (#3340)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user