From aa99b7d3bd75be51407195f87f755bca762a3ad6 Mon Sep 17 00:00:00 2001 From: Kevin Jilissen Date: Thu, 26 Sep 2024 20:19:08 +0200 Subject: [PATCH] Filter out submissions in invisible categories --- webapp/src/Service/SubmissionService.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webapp/src/Service/SubmissionService.php b/webapp/src/Service/SubmissionService.php index 00208b9d834..2753fcf131e 100644 --- a/webapp/src/Service/SubmissionService.php +++ b/webapp/src/Service/SubmissionService.php @@ -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();