mirror of
https://github.com/MewoLab/AquaDX.git
synced 2025-10-25 20:12:39 +00:00
[F] Fix maimai get rating crash for some users
This commit is contained in:
parent
b6c8993f7e
commit
cf015be49f
@ -57,7 +57,7 @@ class GetUserRatingHandler(
|
||||
return json
|
||||
}
|
||||
|
||||
fun loadRateData(value: String) = value.split(",").map {
|
||||
fun loadRateData(value: String) = value.split(",").filter { it.isNotBlank() }.map {
|
||||
val (musicId, level, beforeRating, afterRating) = it.split(":")
|
||||
Mai2UserRate(musicId.toInt(), level.toInt(), beforeRating.toInt(), afterRating.toInt())
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user