aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-03-10 10:48:44 +0900
committernsfisis <nsfisis@gmail.com>2024-03-10 10:48:44 +0900
commit1b51b9cf1ea993357af6b76f306e04cdade95bb7 (patch)
tree2be65867648db9f0449a700dd88a1f41cc10000e
parent6ed373e14764e6bebac876c4f6b32fdd85fa03d2 (diff)
downloadphperkaigi-2024-albatross-1b51b9cf1ea993357af6b76f306e04cdade95bb7.tar.gz
phperkaigi-2024-albatross-1b51b9cf1ea993357af6b76f306e04cdade95bb7.tar.zst
phperkaigi-2024-albatross-1b51b9cf1ea993357af6b76f306e04cdade95bb7.zip
show only best scores in score chart as well as admin page
-rw-r--r--services/app/src/App.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/app/src/App.php b/services/app/src/App.php
index 6cb9dc2..0c7e3d2 100644
--- a/services/app/src/App.php
+++ b/services/app/src/App.php
@@ -259,7 +259,7 @@ final class App
if ($quiz->isRankingHidden()) {
$ranking = null;
} else {
- $ranking = $answerRepo->getRanking($quiz->quiz_id, upto: 20);
+ $ranking = $answerRepo->getRankingByBestScores($quiz->quiz_id, upto: 20);
}
$currentUser = $this->getCurrentUser($request);