X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=yarrg%2Fweb%2Fquery_routesearch;h=b9b734806968750d406d0f52eb4a5735e3ecbc1b;hb=30375dc1932be83a48fca8122e81b845c4b0ecc2;hp=6877536b14b20068ecda828c8a72a7364c58ecc1;hpb=e5119c189d56e0bca45c334acdd3e4aa38586ade;p=ypp-sc-tools.db-test.git diff --git a/yarrg/web/query_routesearch b/yarrg/web/query_routesearch index 6877536..b9b7348 100644 --- a/yarrg/web/query_routesearch +++ b/yarrg/web/query_routesearch @@ -166,11 +166,10 @@ while (<$fh>) { <% $_ |h %> <%perl> } - next unless - m/^ \@ *\d+ ([ap])\# *\d+ \|.*\| *\d+ +(\d+) +(\d+) *\| ([0-9 ]+)$/; - my ($ap,$isles) = (uc $1,$4); + next unless m/^ \@ *\d+ ([ap])\# *\d+ \|.*\| *(\d+)lg *\| *\d+ +(\d+) +(\d+) *\| ([0-9 ]+)$/; + my ($ap,$isles) = (uc $1,$5); next if $results{$ap} && %{$results{$ap}} >= $maxcountea; - my $item= { A => $2, P => $3 }; + my $item= { A => $3, P => $4, Leagues => $2 }; my (@i, @a); foreach (split / /, $isles) { my ($name,$arch)= $isleinfo->($_); @@ -203,12 +202,14 @@ if ($qa->{'debug'}) { Profit +Dist. Archipelagoes Route Abs. Per.lg. + Start Via Finish @@ -222,6 +223,7 @@ if ($qa->{'debug'}) { <% $item->{A} |h %> <% $item->{P} |h %> +<% $item->{Leagues} |h %> <% join ', ', @{ $item->{Archs} } |h %> <% $item->{Start} |h %>, <% join ' ', map { $_.',' } @{ $item->{Vias} } |h %>