From 9576a0ab8b41e013a7c184233f3bc28496647963 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Wed, 9 Apr 2008 22:50:40 +0200 Subject: [PATCH] Don't catch bad planet names --- scripts/scans.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/scans.pl b/scripts/scans.pl index 0156079..654859a 100755 --- a/scripts/scans.pl +++ b/scripts/scans.pl @@ -106,7 +106,7 @@ while (my $scan = $newscans->fetchrow_hashref){ } if ($type eq 'Planet'){ $file =~ s/(\d),(\d)/$1$2/g; - while($file =~ m/(Metal|Crystal|Eonium)\D+(\d+)\D+(\d+)/g){ + while($file =~ m/"left">(Metal|Crystal|Eonium)\D+(\d+)\D+(\d+)/g){ $addpdata->execute($planet,$tick,$scan->{id} ,'roid',$1, $2) or die $dbh->errstr; $addpdata->execute($planet,$tick,$scan->{id} -- 2.39.2