From bb18679a784a5e292be83060ae2d3853e05bcdd5 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Sun, 4 Feb 2007 18:10:51 +0000 Subject: [PATCH] Advanced Unit instead of Military --- ND/Web/Pages/Check.pm | 2 +- ND/Web/Pages/Raids.pm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ND/Web/Pages/Check.pm b/ND/Web/Pages/Check.pm index 8baa874..48186b3 100644 --- a/ND/Web/Pages/Check.pm +++ b/ND/Web/Pages/Check.pm @@ -190,7 +190,7 @@ sub render_body { while (my($type,$scan_id,$tick,$scan) = $query->fetchrow){ $scans{$type} = [$scan_id,$tick,$scan]; } - for my $type ('Planet','Jumpgate','Unit','Military','Fleet Analysis','Surface Analysis','Technology Analysis','News'){ + for my $type ('Planet','Jumpgate','Unit','Advanced Unit','Fleet Analysis','Surface Analysis','Technology Analysis','News'){ next unless exists $scans{$type}; my $scan_id = $scans{$type}->[0]; my $tick = $scans{$type}->[1]; diff --git a/ND/Web/Pages/Raids.pm b/ND/Web/Pages/Raids.pm index c465712..eddd7c8 100644 --- a/ND/Web/Pages/Raids.pm +++ b/ND/Web/Pages/Raids.pm @@ -224,7 +224,7 @@ sub render_body { $target{comment} = parseMarkup($target->{comment}) if ($target->{comment}); my $scans = $DBH->prepare(q{SELECT DISTINCT ON (type) type, tick, scan FROM scans - WHERE planet = ? AND type ~ 'Unit|Planet|Military|.* Analysis' AND tick + 24 > tick() AND scan is not null + WHERE planet = ? AND type ~ 'Unit|Planet|Advanced Unit|.* Analysis' AND tick + 24 > tick() AND scan is not null GROUP BY type, tick, scan ORDER BY type ,tick DESC}); $scans->execute($target->{planet}); my %scans; @@ -233,7 +233,7 @@ sub render_body { } my @scans; - for my $type ('Planet','Unit','Military','Surface Analysis','Technology Analysis'){ + for my $type ('Planet','Unit','Advanced Unit','Surface Analysis','Technology Analysis'){ next unless exists $scans{$type}; my $scan = $scans{$type}; if ($self->{TICK} - $scan->{tick} > 5){ -- 2.39.2