]> 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 44a8d411eb7f00270ccb5c86545a78e70b61a67e..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,7 +50,7 @@ for my $type ("planet","alliance","galaxy"){
        $select->finish;
 }
 
-if ($updated > 36){
+if ($updated){
        `/var/www/ndawn/scripts/parsealliances.pl $updated`;
        `/var/www/ndawn/scripts/parseplanets.pl $updated`;
        `/var/www/ndawn/scripts/parsegalaxies.pl $updated`;