Merge pull request '탐색 - 남/여 크리에이터 리스트' (#174) from test into main

Reviewed-on: #174
This commit is contained in:
klaus 2024-05-02 17:24:18 +00:00
commit 2e37990d87
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(" ") {