]> ruin.nu Git - ndwebbie.git/blobdiff - scripts/fetchdumps.pl
Fixed a bug that didn't save scans with nothing in them
[ndwebbie.git] / scripts / fetchdumps.pl
index 65942b76951038003058f3f7f8e9bb892259b374..71f4e7e4835d4dd6d1ec20576e33e6a94c555239 100755 (executable)
@@ -27,7 +27,7 @@ use DBD::Pg qw(:pg_types);
 
 use LWP::Simple;
 
-use lib qw{/var/www/ndawn/};
+use lib qw{/var/www/ndawn/lib/};
 use ND::DB;
 
 our $dbh = ND::DB::DB();
@@ -50,8 +50,10 @@ for my $type ("planet","alliance","galaxy"){
        $select->finish;
 }
 
-if ($updated > 36){
-       `/var/www/ndawn/scripts/parsedumps.pl $updated`;
+if ($updated){
+       `/var/www/ndawn/scripts/parsealliances.pl $updated`;
+       `/var/www/ndawn/scripts/parseplanets.pl $updated`;
+       `/var/www/ndawn/scripts/parsegalaxies.pl $updated`;
        `/var/www/ndawn/scripts/ndrank.pl`;
        $dbh->do(q{UPDATE misc SET value = ? WHERE id = 'TICK'}, undef, $updated);
        $dbh->do(q{VACUUM ANALYZE});