X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=www%2Findex.pl;h=80c874b36f41e584cf946c2b74d8f4bc29b7ce21;hb=2e8c3d2f5f162a8ab68c4e979c57295f21dd366f;hp=c31200a59586c5260fbadb8533cebdca7b95af64;hpb=8713e2d2abb7de841d9443025e57b09777e79be0;p=foosball diff --git a/www/index.pl b/www/index.pl index c31200a..80c874b 100755 --- a/www/index.pl +++ b/www/index.pl @@ -65,6 +65,7 @@ my @last_games = (); $q = $dbh->prepare(' select * from ( select + gametime as sort_gametime, to_char(gametime, \'IYYY-MM-DD HH24:MI\') as gametime, \'Double\' as type, team1_username1 || \' / \' || team1_username2 as username1, @@ -91,6 +92,7 @@ select * from ( and re.team2_username2=ra4.username union all select + gametime as sort_gametime, to_char(gametime, \'IYYY-MM-DD HH24:MI\') as gametime, \'Single\' as type, username1, @@ -110,7 +112,7 @@ select * from ( on re.gametime=ra2.ratetime and re.username2=ra2.username ) t1 -order by gametime desc limit 10'); +order by sort_gametime desc limit 10'); $q->execute(); while (my $ref = $q->fetchrow_hashref) { if (defined($ref->{'diff2'})) {