Skip to content

Commit 063824c

Browse files
moesohavmcj
authored andcommitted
Revert "Select shortname from current contestproblem"
This reverts commit 0219d8e. (cherry picked from commit 98c29f7)
1 parent 0f59e75 commit 063824c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

webapp/src/Controller/Team/MiscController.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,10 @@ public function homeAction(Request $request): Response
9595
$clarifications = $this->em->createQueryBuilder()
9696
->from(Clarification::class, 'c')
9797
->leftJoin('c.problem', 'p')
98-
->leftJoin('p.contest_problems', 'cp')
9998
->leftJoin('c.sender', 's')
10099
->leftJoin('c.recipient', 'r')
101-
->select('c', 'cp', 'p')
100+
->select('c', 'p')
102101
->andWhere('c.contest = :contest')
103-
->andWhere('cp.contest = :contest')
104102
->andWhere('c.sender IS NULL')
105103
->andWhere('c.recipient = :team OR c.recipient IS NULL')
106104
->setParameter('contest', $contest)
@@ -114,12 +112,10 @@ public function homeAction(Request $request): Response
114112
$clarificationRequests = $this->em->createQueryBuilder()
115113
->from(Clarification::class, 'c')
116114
->leftJoin('c.problem', 'p')
117-
->leftJoin('p.contest_problems', 'cp')
118115
->leftJoin('c.sender', 's')
119116
->leftJoin('c.recipient', 'r')
120-
->select('c', 'cp', 'p')
117+
->select('c', 'p')
121118
->andWhere('c.contest = :contest')
122-
->andWhere('cp.contest = :contest')
123119
->andWhere('c.sender = :team')
124120
->setParameter('contest', $contest)
125121
->setParameter('team', $team)

0 commit comments

Comments
 (0)