mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-27 19:46:19 +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' => '所有题目'];
|
$options[] = ['value' => 'all', 'text' => '所有题目'];
|
||||||
for ($i = 0; $i < count($problems); $i++) {
|
for ($i = 0; $i < count($problems); $i++) {
|
||||||
$problem = UOJContestProblem::query($problems[$i]);
|
$problem = UOJContestProblem::query($problems[$i]);
|
||||||
|
$problem->problem_number = $i;
|
||||||
$options[] = [
|
$options[] = [
|
||||||
'value' => $problem->getLetter(),
|
'value' => $problem->getLetter(),
|
||||||
'text' => $problem->getTitle(['with' => 'letter', 'simplify' => true]),
|
'text' => $problem->getTitle(['with' => 'letter', 'simplify' => true]),
|
||||||
|
Loading…
Reference in New Issue
Block a user