Fix MAL 0/10 scores (closes #3623)

This commit is contained in:
arkon 2020-08-06 19:14:24 -04:00
parent dda7e677a5
commit c1dfdeb500

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