Skip to content

Commit aa99b7d

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

webapp/src/Service/SubmissionService.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,9 @@ public function getSubmissionList(
285285
$counts['inContest'] = (clone $queryBuilder)
286286
->select('COUNT(s.submitid)')
287287
->join('s.contest', 'c')
288+
->join('t.category', 'tc')
288289
->andWhere('s.submittime BETWEEN c.starttime AND c.endtime')
290+
->andWhere('tc.visible = true')
289291
->getQuery()
290292
->getSingleScalarResult();
291293

0 commit comments

Comments
 (0)