mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-20 12:33:57 +00:00
always round progress down
This commit is contained in:
@@ -15,7 +15,7 @@ import kotlin.math.roundToInt
|
||||
fun updateProgress(media: Media, number: String) {
|
||||
if (Anilist.userid != null) {
|
||||
CoroutineScope(Dispatchers.IO).launch {
|
||||
val a = number.toFloatOrNull()?.roundToInt()
|
||||
val a = number.toFloatOrNull()?.toInt()
|
||||
if ((a ?: 0) > (media.userProgress ?: 0)) {
|
||||
Anilist.mutation.editList(
|
||||
media.id,
|
||||
|
||||
Reference in New Issue
Block a user