From: Steinar H. Gunderson Date: Fri, 18 Feb 2005 13:36:38 +0000 (+0000) Subject: Limited the song highscore list to 50 people. X-Git-Url: https://git.sesse.net/?p=ccbs;a=commitdiff_plain;h=199031323f6a6773baea49de898f9821ffab3b09 Limited the song highscore list to 50 people. --- diff --git a/html/song.pl b/html/song.pl index 1b1be39..8369821 100755 --- a/html/song.pl +++ b/html/song.pl @@ -10,7 +10,7 @@ my $id = $cgi->param('id'); my $dbh = ccbs::db_connect(); my $song = $dbh->selectrow_hashref('SELECT * FROM songs WHERE song=?', undef, $id); -my $scores = ccbs::db_fetch_all($dbh, 'SELECT * FROM scores NATURAL JOIN players NATURAL JOIN tournaments WHERE song=? ORDER BY score DESC', $id); +my $scores = ccbs::db_fetch_all($dbh, 'SELECT * FROM scores NATURAL JOIN players NATURAL JOIN tournaments WHERE song=? ORDER BY score DESC LIMIT 50', $id); ccbs::print_header(); ccbs::process_template('song.tmpl', $song->{'title'}, {