Skip to content

Commit

Permalink
Only show winners and podiumers if they actually solved their puzzle.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfly committed Sep 10, 2015
1 parent d888b08 commit f3770d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webroot/results/includes/competition_results.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ function getCompetitionResults ($resultsTable) {
#--- Some filter conditions depending on the view (winners, top3, all).
$viewCondition = "";
if( $chosenTop3 )
$viewCondition = "AND roundId in ('f', 'c') AND pos <= 3";
$viewCondition = "AND roundId in ('f', 'c') AND pos <= 3 AND best > 0";
if( $chosenWinners )
$viewCondition = "AND roundId in ('f', 'c') AND pos <= 1";
$viewCondition = "AND roundId in ('f', 'c') AND pos <= 1 AND best > 0";

if( $chosenByPerson )
$order = "personName, event.rank, round.rank DESC";
Expand Down

0 comments on commit f3770d5

Please sign in to comment.