X-Git-Url: https://ruin.nu/git/?p=ndwebbie.git;a=blobdiff_plain;f=scripts%2Fparseplanets.pl;h=0c62298edc96f501b06907f383c30cbc048dcb1a;hp=a01377f1aa86df741ef15f35218852314310d872;hb=6a03c42459329f8c3f6ddc96cf91e508a6d71c90;hpb=e2d21c8468811a7cdb1266f6972074e8547eb791 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]};