X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fparseplanets.pl;h=50225cedfda2eafaecfcc306f1bba272ed6736e9;hb=504d39ae463cfa4719aaf6d0eaa5656ccbc6d74e;hp=fa31c1ecaa10a1648a311627fd6015959fa130e2;hpb=2d3a66913c76c8d333f53a6b5c64d91b3e594f6b;p=ndwebbie.git diff --git a/scripts/parseplanets.pl b/scripts/parseplanets.pl index fa31c1e..50225ce 100755 --- a/scripts/parseplanets.pl +++ b/scripts/parseplanets.pl @@ -47,7 +47,7 @@ $dumps->execute($tick); if (@_ = $dumps->fetchrow){ $_ = $_[0]; $hour = (gmtime($_[1]))[2]; - my $planetid = $dbh->prepare(qq{SELECT findplanetid(?,?,?)}); + my $planetid = $dbh->prepare(q{SELECT find_planet_id($1,$2,$3)}); while (m/(\d+)\t(\d+)\t(\d+)\t\"(.*)\"\t\"(.*)\"\t(Ter|Cat|Zik|Xan|Etd)\t(\d+)\t(\d+)\t(\d+)\t(\d+)/g){ $planetid->execute($5,$4,$6); my @id = $planetid->fetchrow;