mirror of https://github.com/hykilpikonna/AquaDX
clean code
parent
7ef27ebe22
commit
6d52861cfa
|
@ -36,14 +36,13 @@ class GetGameRankingHandler(
|
|||
val LOOK_BACK_DAYS: Long = 7
|
||||
val QUREY_LIMIT: Long = 50
|
||||
|
||||
val qMai2Playlog = QMai2UserPlaylog.mai2UserPlaylog
|
||||
val qPlaylog = QMai2UserPlaylog.mai2UserPlaylog
|
||||
|
||||
// Get the play count of each music in the last N days
|
||||
val queryAfter = LocalDateTime.now().minusDays(LOOK_BACK_DAYS)
|
||||
val formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")
|
||||
val queryAfterStr = queryAfter.format(formatter)
|
||||
|
||||
val qPlaylog = QMai2UserPlaylog.mai2UserPlaylog
|
||||
val cMusicId = qPlaylog.musicId
|
||||
val cUserCount = qPlaylog.user.id.countDistinct()
|
||||
musicRankingCache = queryFactory
|
||||
|
|
Loading…
Reference in New Issue