Skip to content

Commit 98c29f7

Browse files
moesohameisterT
authored andcommitted
Revert "Select shortname from current contestproblem"
This reverts commit 0219d8e.
1 parent b19f973 commit 98c29f7

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
@@ -99,12 +99,10 @@ public function homeAction(Request $request): Response
9999
$clarifications = $this->em->createQueryBuilder()
100100
->from(Clarification::class, 'c')
101101
->leftJoin('c.problem', 'p')
102-
->leftJoin('p.contest_problems', 'cp')
103102
->leftJoin('c.sender', 's')
104103
->leftJoin('c.recipient', 'r')
105-
->select('c', 'cp', 'p')
104+
->select('c', 'p')
106105
->andWhere('c.contest = :contest')
107-
->andWhere('cp.contest = :contest')
108106
->andWhere('c.sender IS NULL')
109107
->andWhere('c.recipient = :team OR c.recipient IS NULL')
110108
->setParameter('contest', $contest)
@@ -118,12 +116,10 @@ public function homeAction(Request $request): Response
118116
$clarificationRequests = $this->em->createQueryBuilder()
119117
->from(Clarification::class, 'c')
120118
->leftJoin('c.problem', 'p')
121-
->leftJoin('p.contest_problems', 'cp')
122119
->leftJoin('c.sender', 's')
123120
->leftJoin('c.recipient', 'r')
124-
->select('c', 'cp', 'p')
121+
->select('c', 'p')
125122
->andWhere('c.contest = :contest')
126-
->andWhere('cp.contest = :contest')
127123
->andWhere('c.sender = :team')
128124
->setParameter('contest', $contest)
129125
->setParameter('team', $team)

0 commit comments

Comments
 (0)