From 530ad91aae37533822d76027645f2db3e3a0947e Mon Sep 17 00:00:00 2001 From: B Date: Fri, 12 Apr 2024 17:45:07 +0900 Subject: [PATCH 1/3] =?UTF-8?q?refactor(Quiz):=20=EC=A0=95=EB=8B=B5?= =?UTF-8?q?=EB=A5=A0=20=EA=B3=84=EC=82=B0=20=EB=A9=94=EC=86=8C=EB=93=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../newsnippetback/Application/service/QuizServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 741e0a2..ad25e28 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; } From cb6ce0116bbb21a46c8a2f65ccc7d5067a2cc231 Mon Sep 17 00:00:00 2001 From: B Date: Fri, 12 Apr 2024 17:45:39 +0900 Subject: [PATCH 2/3] =?UTF-8?q?style(Quiz):=20=EC=82=AC=EC=9A=A9=ED=95=98?= =?UTF-8?q?=EC=A7=80=20=EC=95=8A=EB=8A=94=20=EB=A9=94=EC=86=8C=EB=93=9C=20?= =?UTF-8?q?=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../newsnippetback/domain/repository/QuizRepository.java | 2 -- 1 file changed, 2 deletions(-) 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); From c92a19b9bef78b33db3fc470e3b4ca47e2b1d2ef Mon Sep 17 00:00:00 2001 From: Leegiyeon Date: Fri, 12 Apr 2024 17:55:14 +0900 Subject: [PATCH 3/3] =?UTF-8?q?docs(Template):=20PR=20template=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/PULL_REQUEST_TEMPLATE.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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