Skip to content

Commit

Permalink
Filter out submissions in invisible categories
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevinjil committed Sep 26, 2024
1 parent b983907 commit aa99b7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webapp/src/Service/SubmissionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,9 @@ public function getSubmissionList(
$counts['inContest'] = (clone $queryBuilder)
->select('COUNT(s.submitid)')
->join('s.contest', 'c')
->join('t.category', 'tc')
->andWhere('s.submittime BETWEEN c.starttime AND c.endtime')
->andWhere('tc.visible = true')
->getQuery()
->getSingleScalarResult();

Expand Down

0 comments on commit aa99b7d

Please sign in to comment.