[F] Fix user recent rating

matching
Azalea 2024-12-27 00:19:40 -05:00
parent 0cb3fd3134
commit c7d12fbdf8
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ fun ChusanServletController.init() {
val lst = db.userGeneralData.findByUser_Card_ExtIdAndPropertyKey(uid, "recent_rating_list")()
?.propertyValue?.ifBlank { null }
?.split(',')?.dropLastWhile { it.isEmpty() }?.map { it.split(':') }
?.map { (musicId, level, ver, score) -> UserRecentRating(musicId.int, level.int, ver, score.int) }
?.map { (musicId, level, score) -> UserRecentRating(musicId.int, level.int, "2000001", score.int) }
?: listOf()
mapOf("userId" to uid, "length" to lst.size, "userRecentRatingList" to lst)