]> ruin.nu Git - ndwebbie.git/commitdiff
Don't try to fetch ships for incoming fleets.
authorMichael Andreen <harv@ruin.nu>
Sun, 23 Mar 2014 11:47:16 +0000 (12:47 +0100)
committerMichael Andreen <harv@ruin.nu>
Sun, 23 Mar 2014 11:47:16 +0000 (12:47 +0100)
These fleets are from intel and don't have any ships.

lib/NDWeb/Controller/Stats.pm

index 9379e99c0aa8574835eb86ddee63728bf49dae7a..a937e35bf6bf636839481d96954ba86adc908f6e 100644 (file)
@@ -198,14 +198,6 @@ sub planet : Local {
                $query->execute($id);
                my @incomings;
                while (my $mission = $query->fetchrow_hashref){
-                       my @ships;
-                       $ships->execute($mission->{id});
-                       if ($ships->rows != 0){
-                               while (my $ship = $ships->fetchrow_hashref){
-                                       push @ships,$ship;
-                               }
-                               $mission->{ships} = \@ships;
-                       }
                        push @incomings,$mission;
                }
                $c->stash(incomings => \@incomings);