Use Bayesian Rating for Manga info (#619)
Refer: https://github.com/CarlosEsco/Neko/pull/1001
This commit is contained in:
parent
ec0f572a82
commit
e8edaee157
2 changed files with 2 additions and 1 deletions
|
|
@ -15,4 +15,5 @@ data class StatisticsMangaDto(
|
|||
@Serializable
|
||||
data class StatisticsMangaRatingDto(
|
||||
val average: Double?,
|
||||
val bayesian: Double?,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ class ApiMangaParser(
|
|||
lastChapterNumber = lastChapter?.floor()
|
||||
|
||||
statistics?.rating?.let {
|
||||
rating = it.average?.toFloat()
|
||||
rating = it.bayesian?.toFloat()
|
||||
// manga.users = it.users
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue