[+] Verse: Save rating

pull/124/head
Azalea 2025-03-09 09:57:09 -04:00
parent b0392cd3e6
commit 6e6adb8caa
2 changed files with 6 additions and 2 deletions

View File

@ -42,8 +42,11 @@ fun ChusanController.upsertApiInit() {
fun Iterable<UserRecentRating>.str() = joinToString(",") { "${it.musicId}:${it.difficultId}:${it.score}" }
ls(
userRecentRatingList to "recent_rating_list", userRatingBaseList to "rating_base_list",
userRatingBaseHotList to "rating_hot_list", userRatingBaseNextList to "rating_next_list",
userRecentRatingList to "recent_rating_list",
userRatingBaseList to "rating_base_list",
userRatingBaseHotList to "rating_hot_list",
userRatingBaseNextList to "rating_next_list",
userRatingBaseNewList to "rating_new_list"
).filter { it.first != null }.forEach { (list, key) ->
val d = db.userGeneralData.findByUserAndPropertyKey(u, key)()
?: UserGeneralData().apply { user = u; propertyKey = key }

View File

@ -54,6 +54,7 @@ class UpsertUserAll(
var userRatingBaseHotList: List<UserRecentRating>? = null,
var userRatingBaseList: List<UserRecentRating>? = null,
var userRatingBaseNextList: List<UserRecentRating>? = null,
var userRatingBaseNewList: List<UserRecentRating>? = null,
var userLoginBonusList: List<JDict>? = null,
var userMapAreaList: List<UserMap>? = null,
var userOverPowerList: List<JDict>? = null,