From b53a20bb6c7cf9ee9ce3f8d0e536be0cb8710203 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 9 Mar 2024 14:10:37 +0900 Subject: fix limit of answers in stats page --- services/app/src/Repositories/AnswerRepository.php | 1 + 1 file changed, 1 insertion(+) diff --git a/services/app/src/Repositories/AnswerRepository.php b/services/app/src/Repositories/AnswerRepository.php index 1fa3e08..ce3a147 100644 --- a/services/app/src/Repositories/AnswerRepository.php +++ b/services/app/src/Repositories/AnswerRepository.php @@ -147,6 +147,7 @@ final class AnswerRepository ]) ->where('r = 1') ->orderBy([['code_size', 'ASC'], ['submitted_at', 'ASC']]) + ->limit($upto) ->execute(['quiz_id' => $quiz_id, 'execution_status' => AggregatedExecutionStatus::OK->toInt()]); return array_map($this->mapRawRowToAnswer(...), $result); } -- cgit v1.2.3-70-g09d2