diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-03-09 14:10:37 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-03-09 14:10:55 +0900 |
| commit | b53a20bb6c7cf9ee9ce3f8d0e536be0cb8710203 (patch) | |
| tree | afa0749a497edfdcf0fd8becab267376bd9e3e39 | |
| parent | e014d9778f739956104caf686c70639914045281 (diff) | |
| download | phperkaigi-2024-albatross-b53a20bb6c7cf9ee9ce3f8d0e536be0cb8710203.tar.gz phperkaigi-2024-albatross-b53a20bb6c7cf9ee9ce3f8d0e536be0cb8710203.tar.zst phperkaigi-2024-albatross-b53a20bb6c7cf9ee9ce3f8d0e536be0cb8710203.zip | |
fix limit of answers in stats page
| -rw-r--r-- | services/app/src/Repositories/AnswerRepository.php | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |
