[-] Verse: Give up on rec rating

pull/122/head
Azalea 2025-03-09 11:37:14 -04:00
parent dc7f8e990b
commit 43a54be20e
1 changed files with 6 additions and 2 deletions

View File

@ -59,13 +59,17 @@ fun ChusanController.chusanInit() {
// musicId cannot be the same with the id in recMusicList // musicId cannot be the same with the id in recMusicList
val u = db.userData.findByCard_ExtId(uid)() ?: return@paged empty val u = db.userData.findByCard_ExtId(uid)() ?: return@paged empty
val list = (chusan.recommendedMusic[u.id] ?: ls()).filter { it != 1 } val list = (chusan.recommendedMusic[u.id] ?: ls()).filter { it != 1 }
if (list.isEmpty()) empty if (list.isEmpty()) empty
else ls(mapOf("musicId" to 1, "recMusicList" to list.joinToString(";") { "$it,1" })) else ls(mapOf("musicId" to 1, "recMusicList" to list.joinToString(";") { "$it,1" }))
} }
"GetUserRecRating".paged("userRecRatingList") { "GetUserRecRating".paged("userRecRatingList") {
// ratingMin: int, ratingMax: int, recMusicList: string??? // ratingMin: int, ratingMax: int, recMusicList: string
// This doesn't work
// listOf(
// mapOf("ratingMin" to 0, "ratingMax" to 30, "recMusicList" to "2387,1;2658,1")
// )
empty empty
} }
// VERSE VERSE VERSE VERSE VERSE VERSE VERSE VERSE VERSE VERSE VERSE VERSE VERSE VERSE VERSE VERSE VERSE VERSE // VERSE VERSE VERSE VERSE VERSE VERSE VERSE VERSE VERSE VERSE VERSE VERSE VERSE VERSE VERSE VERSE VERSE VERSE