From b8b493fd152905c8f30fe6daa375572e8ae0428b Mon Sep 17 00:00:00 2001 From: Koitharu Date: Wed, 6 Jul 2022 16:50:29 +0300 Subject: [PATCH] Assume that 0 is no rating too --- src/main/kotlin/org/koitharu/kotatsu/parsers/model/Manga.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/org/koitharu/kotatsu/parsers/model/Manga.kt b/src/main/kotlin/org/koitharu/kotatsu/parsers/model/Manga.kt index 7e55306c..9186be16 100644 --- a/src/main/kotlin/org/koitharu/kotatsu/parsers/model/Manga.kt +++ b/src/main/kotlin/org/koitharu/kotatsu/parsers/model/Manga.kt @@ -74,7 +74,7 @@ class Manga( * @see rating */ val hasRating: Boolean - get() = rating in 0f..1f + get() = rating > 0f && rating <= 1f fun getChapters(branch: String?): List? { return chapters?.filter { x -> x.branch == branch }