Fix MAL 0/10 scores (closes #3623)

(cherry picked from commit c1dfdeb500a646e76c8ab130ed792d1ae6edd28a)
This commit is contained in:
arkon 2020-08-06 19:14:24 -04:00 committed by Jobobby04
parent a6d6a0fca6
commit aa794f4703

View File

@ -476,7 +476,9 @@ class MyAnimeListApi(private val client: OkHttpClient, interceptor: MyAnimeListI
fun copyPersonalFrom(track: Track) { fun copyPersonalFrom(track: Track) {
num_read_chapters = track.last_chapter_read.toString() num_read_chapters = track.last_chapter_read.toString()
val numScore = track.score.toInt() val numScore = track.score.toInt()
if (numScore in 1..9) { if (numScore == 0) {
score = ""
} else if (numScore in 1..10) {
score = numScore.toString() score = numScore.toString()
} }
status = track.status.toString() status = track.status.toString()