Skip to content

Commit f23a920

Browse files
Remove partial loading of submission file.
Similar to #2241 this gets rid of the only other partial query. Submission files should be pretty small and only the jury submission page displays this information anyway, so it should be safe to load the whole model.
1 parent fb7871f commit f23a920

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webapp/src/Controller/Jury/SubmissionController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public function viewAction(
197197
->leftJoin('s.files', 'f')
198198
->leftJoin('s.external_judgements', 'ej', Join::WITH, 'ej.valid = 1')
199199
->leftJoin('s.contest_problem', 'cp')
200-
->select('s', 't', 'p', 'l', 'c', 'partial f.{submitfileid, filename}', 'cp', 'ej')
200+
->select('s', 't', 'p', 'l', 'c', 'f', 'cp', 'ej')
201201
->andWhere('s.submitid = :submitid')
202202
->setParameter('submitid', $submitId)
203203
->getQuery()

0 commit comments

Comments
 (0)