Skip to content

Commit 83e1794

Browse files
committed
Filter out submissions in invisible categories
1 parent b983907 commit 83e1794

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

webapp/src/Service/SubmissionService.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,10 @@ public function getSubmissionList(
285285
$counts['inContest'] = (clone $queryBuilder)
286286
->select('COUNT(s.submitid)')
287287
->join('s.contest', 'c')
288+
->join('s.team', 't')
289+
->join('t.category', 'tc')
288290
->andWhere('s.submittime BETWEEN c.starttime AND c.endtime')
291+
->andWhere('tc.visible = true')
289292
->getQuery()
290293
->getSingleScalarResult();
291294

0 commit comments

Comments
 (0)