From 12ba27bac060cd83e1e4fe39158dce8c792409b5 Mon Sep 17 00:00:00 2001 From: happybell80 Date: Fri, 26 Sep 2025 11:38:53 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20=EB=AA=85=EC=96=B8=20=EB=A1=9C=ED=85=8C?= =?UTF-8?q?=EC=9D=B4=EC=85=98=20=EA=B0=9C=EC=84=A0=20=EB=AC=B8=EC=84=9C=20?= =?UTF-8?q?=EC=B5=9C=EC=A2=85=20=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 60개 메시지 확장 반영 - 날짜 기반 구현 코드 문서화 🤖 Generated with Claude Code Co-Authored-By: Claude --- .../250926_happybell80_quote_rotation_improvement.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/troubleshooting/250926_happybell80_quote_rotation_improvement.md b/troubleshooting/250926_happybell80_quote_rotation_improvement.md index 85678a0..19929d1 100644 --- a/troubleshooting/250926_happybell80_quote_rotation_improvement.md +++ b/troubleshooting/250926_happybell80_quote_rotation_improvement.md @@ -24,7 +24,7 @@ def _get_random_messages(self) -> Tuple[str, str, Tuple[str, str, str]]: ### 문제점 - 완전 랜덤 선택으로 같은 명언이 연속 반복될 수 있음 -- 20개 오프닝, 20개 클로징, 명언 개수는 로더에서 로깅됨 (라인 88) +- 60개 오프닝, 60개 클로징, 60개 명언으로 확장됨 (파일 수정됨) - 로테이션 순서나 사용 기록 추적 없음 - 환경변수(HEADLINES_OPENER/CLOSER) 설정 시 랜덤 선택 건너뜀 (라인 105-107) @@ -36,6 +36,7 @@ def _get_random_messages(self) -> Tuple[str, str, Tuple[str, str, str]]: - 오늘 날짜를 기준으로 인덱스 계산 - 인덱스 = (오늘의 일수) % (명언 개수) - DB 수정 불필요, 코드만 변경 +- 60개 메시지로 약 6번/년 반복 (기존 20개는 18번/년) ### 구현 필요사항 1. _get_random_messages() 메서드 수정