탐색 - 남/여 크리에이터 리스트

- 정렬순서에 숫자도 추가
This commit is contained in:
Klaus 2024-05-03 02:11:23 +09:00
parent 6b138246a9
commit 6f0f53a9de
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ class ExplorerQueryRepository(
fun findCreatorByGender(gender: Int): List<Member> {
val today = LocalDate.now()
val offset = (today.dayOfMonth - 1) % 26
val characters = ('A'..'Z').map { it.toString() }
val characters = ('A'..'Z').map { it.toString() }.plus((0..9).map { it.toString() })
val rotatedChars = characters.drop(offset) + characters.take(offset)
val caseWhenClauses = rotatedChars.withIndex().joinToString(" ") {