X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=scripts%2Fparseplanets.pl;h=0c62298edc96f501b06907f383c30cbc048dcb1a;hb=15d94c254b3f539cae6e9074e3a34a0ecababfa9;hp=a01377f1aa86df741ef15f35218852314310d872;hpb=f56f84ac1689330801afc9e25fcd998ef8b39f33;p=ndwebbie.git diff --git a/scripts/parseplanets.pl b/scripts/parseplanets.pl index a01377f..0c62298 100755 --- a/scripts/parseplanets.pl +++ b/scripts/parseplanets.pl @@ -85,6 +85,7 @@ while (my @planet = $findplanets->fetchrow){ } my $intel = $dbh->prepare(q{INSERT INTO forum_posts (ftid,uid,message) VALUES( (SELECT ftid FROM planets WHERE pid = $2),$1,$3)}); +$dbh->do(q{DELETE FROM planet_stats WHERE tick = $1},undef,$tick); for my $planet (@planets) { #print "$planet->[1]\n"; my $oldPlanet = $oldStats{$planet->[1]};