]> ruin.nu Git - ndwebbie.git/blobdiff - covop.pl
use real perl handler so we don't need ugly index.pl?page=
[ndwebbie.git] / covop.pl
index 9c8284d33ddeba4ec3f11b654268045e8d885bec..0614da0d4e5ca22d9ee64acbf092cd009c10300d 100644 (file)
--- a/covop.pl
+++ b/covop.pl
@@ -59,10 +59,10 @@ $query->execute($ND::PLANET);
 my @targets;
 my $i = 0;
 while (my ($id,$coords,$metal,$crystal,$eonium,$seccents,$dists,$lastcovop,$user,$max) = $query->fetchrow){
+       $i++;
        push @targets,{Username => $user, Target => $id, Coords => $coords
                , Metal => $metal, Crystal => $crystal, Eonium => $eonium, SecCents => $seccents
                , Dists => $dists, MaxResHack => $max, LastCovOp => $lastcovop, List => $list, ODD => $i % 2};
-       $i++;
 }
 $BODY->param(Targets => \@targets);