X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-live.git;a=blobdiff_plain;f=yarrg%2Fweb%2Fquery_routesearch;h=357ba94ed39395e86d230801cef31fa53a9ef26d;hp=89a81371845c06069fe43b197a6ad8d945e89abb;hb=da7ce28baf19eb34178ee4886216ee3fb2c89321;hpb=aaac8ff612afe5c10dd97a61f44870c24da4fcad diff --git a/yarrg/web/query_routesearch b/yarrg/web/query_routesearch index 89a8137..357ba94 100644 --- a/yarrg/web/query_routesearch +++ b/yarrg/web/query_routesearch @@ -67,6 +67,7 @@ my $maxcountea=15; +

Find most profitable routes and trades

% if ($qa->{Dropdowns}) { @@ -102,6 +103,8 @@ This feature is not available from the "drop down menus" interface. % } +
+
<%perl> if (!$emsg && $maxdist > $maxmaxdist) { @@ -109,10 +112,12 @@ if (!$emsg && $maxdist > $maxmaxdist) { " supported, sorry."; } -$emsgokorprint->($emsg) or return; -@islandids or return; -$allargs->{'submit'} or return; -defined $routeparams->{MaxMass} or defined $routeparams->{MaxVolume} or return; +print("
"), return + unless $emsgokorprint->($emsg) + and @islandids + and $allargs->{'submit'} + and (defined $routeparams->{MaxMass} or + defined $routeparams->{MaxVolume}); #---------- prepare island names ---------- @@ -252,7 +257,7 @@ YARRG website still runs quickly.

If you submitted several searches and gave up on them (eg by hitting -`back' or `stop' in your browser), be aware that that doesn't +"back" or "stop" in your browser), be aware that that doesn't generally stop the search process at the server end. So it's best to avoid asking for large searches that you're not sure about. @@ -273,7 +278,7 @@ $someresults->(); % } else {

Best routes for profit per league

% } - +
@@ -293,7 +298,6 @@ $someresults->();
Start Via Finish -
% my $datarow=0; % my %sortkeys; @@ -341,11 +345,8 @@ $someresults->();

Notes

Per league values count each island visited as one -(additional) league; the `Dist.' column is however the actual distance +(additional) league; the "Dist." column is however the actual distance to be sailed. All profit figures are somewhat approximate; get a complete trading plan for a route for accurate information. -<%perl> - - - +