]> ruin.nu Git - ndwebbie.git/blobdiff - NDWeb/Pages/GalaxyRankings.pm
Make relationship and planet_status an enum
[ndwebbie.git] / NDWeb / Pages / GalaxyRankings.pm
index 4be94715533c4a484e767c76ca2e1ad33db862fb..318f4f47986f1deb60188e54de3f1e21e24781ba 100644 (file)
@@ -80,7 +80,6 @@ sub render_body {
        ORDER BY $order LIMIT 100 OFFSET ?});
        $query->execute($offset) or $error .= p($DBH->errstr);
        my @galaxies;
-       my $i = 0;
        while (my $galaxy = $query->fetchrow_hashref){
                for my $type (qw/planets size score xp value/){
                        #$galaxy->{$type} = prettyValue($galaxy->{$type});
@@ -97,8 +96,6 @@ sub render_body {
                                $galaxy->{$type} =~ s/(^[-+]?\d+?(?=(?>(?:\d{3})+)(?!\d))|\G\d{3}(?=\d))/$1,/g; #Add comma for ever 3 digits, i.e. 1000 => 1,000
                        }
                }
-               $i++;
-               $galaxy->{ODD} = $i % 2;
                push @galaxies,$galaxy;
        }
        $BODY->param(Galaxies => \@galaxies);