]> ruin.nu Git - ndwebbie.git/blobdiff - scripts/parseplanets.pl
Use local::lib properly
[ndwebbie.git] / scripts / parseplanets.pl
index a01377f1aa86df741ef15f35218852314310d872..9278fea56b39fd388ad13e0a90b67f6800562a4b 100755 (executable)
@@ -22,6 +22,7 @@ q{
 
 use strict;
 use warnings;
+use local::lib;
 use DBI;
 use DBD::Pg qw(:pg_types);
 
@@ -85,6 +86,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]};