mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-09-08 01:05:18 +00:00
chore(contest/submissions): reduce unnecessary sql queries
This commit is contained in:
parent
36255cb705
commit
f12ae19051
@ -427,6 +427,7 @@ function echoMySubmissions() {
|
||||
$options[] = ['value' => 'all', 'text' => '所有题目'];
|
||||
for ($i = 0; $i < count($problems); $i++) {
|
||||
$problem = UOJContestProblem::query($problems[$i]);
|
||||
$problem->problem_number = $i;
|
||||
$options[] = [
|
||||
'value' => $problem->getLetter(),
|
||||
'text' => $problem->getTitle(['with' => 'letter', 'simplify' => true]),
|
||||
|
Loading…
Reference in New Issue
Block a user