Skip to content

feat(tournaments): 수락된 일일 코드 기록만 대회 순위에 반영 - #32

Merged
cursor[bot] merged 1 commit into
mainfrom
cursor/feat-day-code-ranking-c7bb
Oct 21, 2026
Merged

cursor[bot] merged 1 commit into
mainfrom
cursor/feat-day-code-ranking-c7bb

Conversation

@rjsgud49

Copy link
Copy Markdown
Member

왜

일일 코드는 저장하고 관리자가 수락할 수 있었지만, 대회 순위는 기간 안의 승인된 공식 인증을 모두 집계했습니다. 코드를 맞추지 않은 기록도 순위에 들어갔습니다.

무엇을 바꿨나

  • 대회에 일일 코드가 하나라도 있으면, 그 대회에 제출되고 dayCodeStatus가 accepted인 공식 인증만 순위에 넣습니다.
  • 코드를 한 번도 등록하지 않은 대회는 기존처럼 기간 안 승인 기록을 집계합니다.
  • 대회 상세의 순위 안내 문구가 코드 사용 여부에 따라 바뀝니다. 상세 응답의 dayCodes 개수를 사용합니다.

검증

  • npm test --prefix apps/api (106 passed)
  • npm run build --prefix apps/api
  • 웹을 바꿨다면 npm run build --prefix apps/web
  • AI를 바꿨다면 python3 -m unittest discover -s ai/tests -t ai

화면

문구만 바뀝니다. 코드가 있는 대회는 "오늘의 코드를 운영자가 수락한 공식 인증만 순위에 들어갑니다." 코드를 쓰지 않는 대회는 기존 문구를 유지합니다.

마이그레이션

없음. 이미 있는 tournament_day_codes와 day_code_status를 읽습니다.

Open in Web Open in Cursor 

코드를 등록한 대회는 운영자가 수락한 공식 인증만 집계한다. 코드를 쓰지 않는 대회는 기간 안 승인 기록을 그대로 쓴다.

Co-authored-by: park gun hyung <qkrrjsgud49@gmail.com>
@cursor
cursor Bot merged commit 35fceb8 into main Oct 21, 2026
1 check passed
@cursor
cursor Bot deleted the cursor/feat-day-code-ranking-c7bb branch October 21, 2026 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant