X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=yarrg%2Fweb%2Froutetrade;h=1f8df2a5afdb6eafd5215a38f71cce74ad03dce5;hb=f7c3c04f684b0e9cac4518beeece11853ef75109;hp=c6ed408d80fe9d779e54de724856c6abf02ab673;hpb=fdf4e5538945f9d058f3ad54ddfe707b0977e1d4;p=ypp-sc-tools.web-live.git diff --git a/yarrg/web/routetrade b/yarrg/web/routetrade index c6ed408..1f8df2a 100644 --- a/yarrg/web/routetrade +++ b/yarrg/web/routetrade @@ -585,17 +585,23 @@ $addcols->({ Total => 0, DoReverse => 1, TotalSubflows => 1 }, qw( % } # ========== OPTIMISATION ========== +% if (!printable($m)) {

Contents

+% } % if ($optimise) { # ========== TRADING PLAN ========== % @@ -781,7 +787,7 @@ Expected average profit: % % } # ========== TRADING PLAN ========== -% { +% if (!printable($m)) {

Data age summary

<%perl> my $sth_i= $dbh->prepare(< $now, fetchrow => $fetchrow &> Islands shown in reverse order of visits.
+% } else { +% my @tl= gmtime $now or die $!; +

+Generated by YARRG at <% + sprintf "%04d-%02d-%02d %02d:%02d:%02d UTC", + $tl[5]+1900, @tl[4,3,2,1,0] + |h %>. +%# % } -% my %ts_sortkeys; -% { +% if (!printable($m)) { +% my %ts_sortkeys; +% { % my $cdspan= $qa->{ShowStalls} ? ' colspan=2' : ''; % my $cdstall= $qa->{ShowStalls} ? 'Stall' : '';

Relevant trades

@@ -882,14 +897,14 @@ Islands shown in reverse order of visits.
Capital Profit % } -% } +% } -% foreach my $col (@cols) { +% foreach my $col (@cols) { -% } +% } -% foreach my $flowix (0..$#flows) { +% foreach my $flowix (0..$#flows) { % my $flow= $flows[$flowix]; % my $rowid= "id_row_$flow->{UidShort}"; @@ -923,17 +938,17 @@ Islands shown in reverse order of visits.
%>><% exists $spec->{String} ? $spec->{String} : $v |h %> % $ci += $spec->{Span}; % } -% } +% } Total -% foreach my $ci (3..$#cols) { +% foreach my $ci (3..$#cols) { % my $col= $cols[$ci]; % if (defined $col->{Total}) { <% $col->{Total} |h %> % } -% } +% } <&| tabsort, cols => \@cols, table => 'trades', rowclass => 'datarow', @@ -943,6 +958,8 @@ Islands shown in reverse order of visits.
+% } # !printable + <%init> use CommodsWeb; use Commods;