]> ruin.nu Git - ndwebbie.git/blobdiff - NDWeb/Pages/CovOp.pm
Only count fleets from launch confirmation
[ndwebbie.git] / NDWeb / Pages / CovOp.pm
index e777499e03c552dc96a033a9818ee7866c8adf0f..cc2688615274b836d42481228568a284aa1e9670 100644 (file)
@@ -40,7 +40,7 @@ sub render_body {
        $self->{TITLE} = 'CovOp Targets';
        my $DBH = $self->{DBH};
 
-       return $self->noAccess unless $self->isHC;
+       return $self->noAccess unless $self->isMember;
 
        my $show = q{AND ((planet_status IS NULL OR NOT planet_status IN ('Friendly','NAP')) AND  (relationship IS NULL OR NOT relationship IN ('Friendly','NAP')))};
        $show = '' if defined param('show') && param('show') eq 'all';
@@ -79,12 +79,10 @@ sub render_body {
        $query->execute($self->{PLANET});
 
        my @targets;
-       my $i = 0;
        while (my ($id,$coords,$metal,$crystal,$eonium,$seccents,$dists,$max) = $query->fetchrow){
-               $i++;
                push @targets,{Target => $id, Coords => $coords
                        , Metal => $metal, Crystal => $crystal, Eonium => $eonium, SecCents => $seccents
-                       , Dists => $dists, MaxResHack => $max, List => $list, ODD => $i % 2};
+                       , Dists => $dists, MaxResHack => $max, List => $list};
        }
        $BODY->param(Targets => \@targets);
        return $BODY;