[+] Add ongeki b55

This commit is contained in:
Becods
2024-05-13 10:13:17 +08:00
parent fb72317c6f
commit e7b5991dbf
4 changed files with 77 additions and 9 deletions

View File

@@ -29,11 +29,15 @@ class Ongeki(
) }
override suspend fun userSummary(username: String) = us.cardByName(username) { card ->
// val extra = userGeneralDataRepository.findByUser_Card_ExtId(u.ghostCard.extId)
// .associate { it.propertyKey to it.propertyValue }
val extra = userGeneralDataRepository.findByUser_Card_ExtId(card.extId)
.associate { it.propertyKey to it.propertyValue }
// TODO: Rating composition
val ratingComposition = mapOf(
"best30" to (extra["rating_base_best"] ?: ""),
"best15" to (extra["rating_base_new_best"] ?: ""),
"recent10" to (extra["rating_base_hot_best"] ?: "")
)
genericUserSummary(card, mapOf())
genericUserSummary(card, ratingComposition)
}
}