diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 8a25ee1..f3d21b6 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,8 +1,8 @@ ### PR 타입(하나 이상의 PR 타입을 선택해주세요) --[ ] 기능 추가 --[ ] 기능 삭제 --[ ] 버그 수정 --[ ] 의존성, 환경 변수, 빌드 관련 코드 업데이트 +- [ ] 기능 추가 +- [ ] 기능 삭제 +- [ ] 버그 수정 +- [ ] 의존성, 환경 변수, 빌드 관련 코드 업데이트 ### 반영 브랜치 ex) feat/login -> dev diff --git a/src/main/java/org/triumers/newsnippetback/Application/service/QuizServiceImpl.java b/src/main/java/org/triumers/newsnippetback/Application/service/QuizServiceImpl.java index 7371adc..cc446e6 100644 --- a/src/main/java/org/triumers/newsnippetback/Application/service/QuizServiceImpl.java +++ b/src/main/java/org/triumers/newsnippetback/Application/service/QuizServiceImpl.java @@ -32,7 +32,7 @@ private double calculateCorrectRate(int correctCnt, int solvedCnt) { if (solvedCnt == 0) { return 0.0; } - return (double) correctCnt / solvedCnt * 100; + return (double) correctCnt / solvedCnt; } diff --git a/src/main/java/org/triumers/newsnippetback/domain/repository/QuizRepository.java b/src/main/java/org/triumers/newsnippetback/domain/repository/QuizRepository.java index 801be11..62c187b 100644 --- a/src/main/java/org/triumers/newsnippetback/domain/repository/QuizRepository.java +++ b/src/main/java/org/triumers/newsnippetback/domain/repository/QuizRepository.java @@ -9,8 +9,6 @@ @Repository public interface QuizRepository extends JpaRepository { - Quiz findByDateAndNo(LocalDate date, int no); - Quiz findAnswerById(int quizId); Quiz findCategoryIdAndContentAndOptionAAndOptionBAndOptionCAndOptionDAndAnswerById(int quizId);