Spaces:
Runtime error
Runtime error
Commit History
-
fix: 코드 리뷰 지적사항 8건 수정
ClaudeUnverified signature[🔴 심각] - env.py 신설: _get_secret → get_secret 공개 API로 전환 db.py, config.py, teacher_auth.py, teacher_dashboard.py 임포트 일괄 정리 - app.py: 의견 제출 Rate Limiting 추가 (10초 제한) [🟡 경고] - validators.py: validate_opinion_content에 allowed_pattern=None 적용 (특수문자·이모지 허용, 길이만 체크) - validators.py: _validate_text_field 길이 체크를 truncate 이전에 수행 (TOO_LONG 오류가 절대 발생하지 않던 버그 수정) - utils.py: get_kst_now()를 timezone-aware KST datetime 반환으로 변경 - app.py: DB 저장 전 IP를 SHA-256 해시(16자)로 처리 [🔵 개선] - tests/ 신설: validators, utils 단위 테스트 24개 (pytest) - CI에 test job 추가 - teacher_dashboard.py를 hint/summary/records 3개 컴포넌트로 분리 - wordcloud.py: max_words 75→40으로 축소 (O(n²) 성능 개선) - utils.py: compact_ai_report_output 이중 치환 버그 → 정규식으로 수정 https://claude.ai/code/session_01BRbPoMBBfvgN58bGkNhmv744ebedd
-
Split app.py: extract utils.py and wordcloud.py
ClaudeUnverified signature- utils.py: datetime 헬퍼, get_client_ip, log_audit, to_bool_flag, compact_ai_report_output 분리 - wordcloud.py: build_word_frequencies, build_circular_wordcloud_html 분리 (SVG 워드클라우드 250줄) - app.py: 1007줄 → 853줄로 축소, 분리된 모듈 import로 대체 https://claude.ai/code/session_018WXW8M8SMsWcHtj1RynUi44b0d992