Skip to content

Commit

Permalink
Remove dupes from recent contest list
Browse files Browse the repository at this point in the history
  • Loading branch information
samwilson authored Dec 14, 2022
1 parent ef6f279 commit 57cbbcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Repository/ContestRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public function getContestsForUser( string $username ): array {
* @return mixed[][]
*/
public function getRecentlyEndedContests(): array {
$sql = 'SELECT c.*, '
$sql = 'SELECT DISTINCT c.*, '
. ' ( c.start_date >= NOW() ) AS pending, '
. ' ( c.start_date <= NOW() AND c.end_date >= NOW() ) AS in_progress '
. ' FROM contests c'
Expand Down

0 comments on commit 57cbbcd

Please sign in to comment.